Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Camera to Object problem

Author
Message
Edizzle
20
Years of Service
User Offline
Joined: 22nd Aug 2004
Location:
Posted: 13th Nov 2004 04:24
Hello DB peps! I'm stuck on something simple. I'm making a fps and when i position the gun up to the camera the camera cuts through the gun and you can see right through that part of the gun. I know i this is probley a simple problem, but can anyone help? I tryed set camera range to 0,3000 but it can't take 0. I searched for this in the forums but i didn't find anyone with this problem, hopefully meaning its simple fix.


http://edizzle.100free.com
Edizzle
20
Years of Service
User Offline
Joined: 22nd Aug 2004
Location:
Posted: 13th Nov 2004 04:49
And also one more thing! Whats the best why to position the gun in front of the camera? Lock object on (which makes the object disopear and i never figured out why), make the box around the camera lock the gun as a limb, or just keep updateing the position with newxvalues?

http://edizzle.100free.com
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 14th Nov 2004 01:37
Could you please not use bold for a whole post? Thanks

I think you can use floats (numbers with decimals) for the camera range, so you can do something like this: set camera range to 0.01,3000.

Lock object makes DB think that you never moved the camera. To position your gun right, it would be helpful to create a small program just to get the position of your gun right. Just don't move the camera and make sure you have autocam off, then position the gun with the arrows and record the position. Then lock gun in your game and position it with these coordinates.

Otherwise, I think the limb thing would work, but don't try using trig, it could really hurt your brain... I know it would give me some drain bramage, I've tried it already...

Xander Moser - Bolt Software - Firewall
Edizzle
20
Years of Service
User Offline
Joined: 22nd Aug 2004
Location:
Posted: 14th Nov 2004 03:17
ya i tryed to set camera range to 0.01,3000 but it didn't take it i think i'll just do the ol attach object. Thanks anyway man.


http://edizzle.100free.com
Ali M Oldboy
20
Years of Service
User Offline
Joined: 6th Nov 2004
Location: England, UK
Posted: 14th Nov 2004 03:53


There you go! That should be it!

-ALI-

N U K E S O F T :: EXPLOSIVE GAMES ::

Login to post a reply

Server time is: 2025-05-24 17:50:38
Your offset time is: 2025-05-24 17:50:38