2
votes
representing transforms without a world/global reference frame
You do not need to have multiple reference frames in order to support portals.
You mentioned Duke Nukem 3D as the kind of portal system you want. That game fakes 3D using a technique called Sector-...
1
vote
Optimizing recursive portal traversing
You might find it useful to gather some statistics on the number of rooms that the algorithm visits, and the number of portal tests that it does. Make sure that the numbers are sensible. For example, ...
1
vote
How can I hide the interior frontfaces of a portal when viewed from the outside?
A simple trick for this is to add a second shader pass, or second material that renders before the main one.
Switch the culling mode to cull front faces and draw back faces instead. Write to the depth ...
1
vote
In a portal-based engine where Items are owned by a room, how to do inter-room collision detection?
The naive approach would be to do collision detection by not just querying the room but also the adjacent rooms, but this does not cover the case that an item might be so large that it passes through ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
portals × 22unity × 6
opengl × 3
c# × 2
collision-detection × 2
3d × 2
shaders × 2
rendering × 2
algorithm × 2
graphic-effects × 2
software-rendering × 2
valve × 2
c++ × 1
physics × 1
mathematics × 1
textures × 1
architecture × 1
camera × 1
path-finding × 1
ios × 1
geometry × 1
transformation × 1
optimization × 1
graphics-programming × 1
opengl-es2 × 1