Jump to content
  • Advertisement

Archived

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

nlowery

2D screen coords for Portals

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

If I'm not mistaken, In order to change the current frustrum I need to use 2D screen coords. Does anyone know how or where I can find info about converting 3D portal coords to 2D screen coords. thanks, nlowery "Your request is not unlike your lower intestine... It's rather stinky, but loaded with danger." - Ace Edited by - nlowery on February 24, 2002 8:51:57 PM Edited by - nlowery on February 24, 2002 9:13:40 PM

Share this post


Link to post
Share on other sites
Advertisement
Most of the faster portal engine techniques take place in world space using frustrum planes, so you wouldn't need to worry about transforming a portal to screen space then. However, if you really feel the need to, you can transform a portal as you would any polygon. Basically, its as simple as dividing by the z coordinate. Look up "perspective projection" for more.

Edited by - TerranFury on February 24, 2002 9:07:48 PM

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!