Skip to main content
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-...
congusbongus's user avatar
  • 14.9k
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, ...
Adam's user avatar
  • 7,549
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 ...
DMGregory's user avatar
  • 136k
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 ...
Philipp's user avatar
  • 122k

Only top scored, non community-wiki answers of a minimum length are eligible