Jump to content
  • Advertisement
Sign in to follow this  
NukeCorr

Question about first-person games

This topic is 2612 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What is the method or name or something like that when in first-person games for example holding a gun/item etc. in hand stays top of everything else in 3D?

I'm kind of new to 3D programming (used to make 2D games) and I'd like to have any links or information how to do that.
I hope you get my meaning.. it's like if you have huge 3D mesh in players hand and when you go next to wall and watch the wall, the mesh doesn't go "inside" the wall/scenery

EDIT: Oops! Wrong forum section, sorry!

Share this post


Link to post
Share on other sites
Advertisement
To do that kind of "two layer" effect, the easiest way is to draw the main scene, then clear the Z-buffer, then draw the 'overlay' scene.

Share this post


Link to post
Share on other sites

To do that kind of "two layer" effect, the easiest way is to draw the main scene, then clear the Z-buffer, then draw the 'overlay' scene.


Ohh it's that simple, well now I know that.
Also if someone knows some easy-to-follow books or documentation for a almost beginner in 3D games, would be nice too. Later on I can move on to more advanced mechanics

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!