Support ability to create "portals"
There are a number of use-cases for these:
- ability to see into the inside (interior cell) of a house, either via an open door and window.
- ability to see the outside (exterior cell) from inside, either through the door, cave entrance or window.
Some of these things we can automate in engine, but just exposing this ability in Lua would allow modders add this windows. So for looking outside a window from an interior, the modder could place the portal to point out towards a cell position. Just terrain and statics need to be rendered, and can be obscured by semi-transparent glass to give the effect of there really being an outside with real sun light coming in.
There has already been work demonstrating how you could view interiors through the door from the outside here: https://youtu.be/NdeoMeSiL-A?t=58
Things to consider:
- that an interior doesn't map 1:1 with exterior, so a room might be bigger or smaller than the dimensions outside
- non euclidian geometry
Edited by psi29a