Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

a2k

help! : mixing 2d/3d graphics in open gl

This topic is 6706 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

how do you mix 2d and 3d graphics together in open gl? i''m trying to put up a 2d background (backdrop) with a 3d mesh in front. what i''m doing is rendering the background in ortho() first, and then i change the projection to perspective() so i can get a perspective view of the object. but the 3d object won''t show up (it''s hidden behind the 2d image). i changed the order or rendering, and it still didn''t work. i tried relocating the 3d object, it still didn''t work. suggestions please?!?!?!? a2k

Share this post


Link to post
Share on other sites
Advertisement
Yo,

One solution is to disable Z-Buffer writes while drawing your image, using glDepthMask. After drawing your image, enable Z-Buffer writes again and draw your Mesh... that should do the trick!

Hope that helps,
Nicodemus.

Edited by - Nicodemus on 4/7/00 11:36:41 PM

Share this post


Link to post
Share on other sites
HOLY SHIT! IT WORKED! you''re rad, dude. thanks a million. damn, and you''re an initiate, god, do i feel bad. your names goin in the credits.

a2k

Share this post


Link to post
Share on other sites

  • 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!