Jump to content
Posted 18 February 2012 - 11:33 AM
Posted 18 February 2012 - 01:22 PM
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 2A and 2B in 2D space give a 3rd point 2C 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.