Jump to content
  • Advertisement
Sign in to follow this  
Paul Griffiths

Are you clever? Distance Problem.

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

Advertisement

I think I've worked it out, some angles are positive and some are negative, got to work them out.

 

Simpler than that, calculate if portals rotated by <>180 and then do distance plane equation, simple!

Edited by paulgriffiths

Share this post


Link to post
Share on other sites

If your portals are planar polygons, which portal a ray from the camera sees can only change

  • at the edges of a portal
  • at the intersection of two portals

Distances between portals and camera do not matter, except to define depth buffers that can be used.to locate portal edges and intersections in screen space.

 

You also don't seem to clip portals against the view frustum of your camera.

Share this post


Link to post
Share on other sites
Sign in to follow this  

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