Sign in to follow this  
NukeCorr

Question about first-person games

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
[quote name='Hodgman' timestamp='1306158507' post='4814582']
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.
[/quote]

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this