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.

Dark GDK / Need help with gun in FPS

Author
Message
Kathorc
16
Years of Service
User Offline
Joined: 28th Sep 2008
Location:
Posted: 29th Sep 2008 04:17
I'm trying to create an FPS but I cant figure out how to make it so the gun works correctly, when I set the gun to be at the camera position it didn't show up so I just put the gun at a random spot and I moved the camera near it and as the camera got closer to the gun pieces of the gun started going away. Here is a picture of what is happening.

Attachments

Login to view attachments
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 29th Sep 2008 12:41
Not really a thing to worry. The gun has entered beyond camera's near clip plane, therefore it is not drawn.
Lower the near camera range or put the gun further away from the camera.
Also I think setting disable object zread on the gun, and giving it a low id texture, may save some other issues, as the gun will stay in 1st plane over other objects with higher texture id.
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 29th Sep 2008 13:13 Edited at: 29th Sep 2008 13:14
As Morcilla said lower the camera range, use this command:



Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 29th Sep 2008 13:16
Watch out as lowering too much the camera range (that is bringing nearer the near clip plane) can cause visual artifacts due to z-fighting.
SushiBox
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Ohio
Posted: 29th Sep 2008 16:50
If you haven't already, you may want to look into using the following command to lock the object to the screen. Please forgive me if its a little off, im doing this from memory.



Also as someone mentioned above, look in the docs to turn of the Z for your gun so it wont appear to poke through walls.

www.Helios-Online.net

Login to post a reply

Server time is: 2024-09-30 07:27:33
Your offset time is: 2024-09-30 07:27:33