Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
Posted 18 February 2012 - 11:33 AM
Posted 18 February 2012 - 02:15 PM
How about just projecting the 3d portals onto the view plane and THEN generating 2d axis aligned quads from the projections? Once again, a bit more conservative, but still will give you most of th benefit.
Posted 19 February 2012 - 02:37 AM
Posted 19 February 2012 - 04:24 AM
If 2 points _{2}A and _{2}B in 2D space give a 3rd point _{2}C due to barycentric weighting... I'm not sure if that would be possible with 2D projected vertices, especially since the z coordinates will be undefined. I need to do this in object space.
Posted 19 February 2012 - 04:47 PM
The depth information is implicit in the order that you traverse the cell portal graph. I.e. You first need to see through the portals of your current cell in order to see through the portals in the next cell. Mathematical induction does the rest.
No subfrustum is needed - just the refined portal in image space which should be the 2D intersection of whichever portals were traversed to get to it.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.