I made a more complicated Portal rendering system to render Marathon maps correctly, but it's too different from Marathon to load the maps automatically.
https://github.com/huriettic/portalrend ... nesandaabb
Planes and axis aligned bounding boxes is how you can find portals and stencils handle overdraw.
It's 3D portal rendering with mathematical planes.
https://www.youtube.com/watch?v=_SjYeNLr0Jo
Portal rendering with planes and AABB
Would anyone like to know how to do portal based occlusion culling?
https://www.youtube.com/watch?v=8xgb-ZcZV9s
The video gives you an idea of how it works, but the details of how to make it is complicated.
https://www.youtube.com/watch?v=8xgb-ZcZV9s
The video gives you an idea of how it works, but the details of how to make it is complicated.