• Advertisement

Archived

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

2D screen coords for Portals

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