Jump to content
  • Advertisement

Archived

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

Rasmadrak

Faking geometry...

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

Hi there! I''m using satellite photos as texturemaps in my latest rts, so the question is: Can I fake 3d terrain? etc, if the satellitephoto shows "the white house" etc, can I put a nonrenderable box where the house is, but it still affects the zbuffer? kinda like game that us a 2D background, but characters can walk behind stuff... would it perhaps be possible to use planarmapping on the box, using the satellite texture and the camera as projection direction..? Any clues? "Game Maker For Life, probably never professional thou." =)

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by Rasmadrak
can I put a nonrenderable box where the house is, but it still affects the zbuffer?

glColorMask(false, false, false, false)

That will allow you to ''draw'' objects, but no actual colour pixels will be written. Z-buffer values may be written if you''ve got your depth funcs set up as normal though.

Or you might do well to google for ''nailboards'', if you''ve got static backgrounds with depth...

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!