3 ms·
No, not really. The engine needed a lot of help from the map designer to make mirrors work at all, and those weren't even traversable without cheat codes, nor w
by throwanem 6y ago
No, not really. The engine needed a lot of help from the map designer to make mirrors work at all, and those weren't even traversable without cheat codes, nor were they more than the flex foone describes them as - that's the reason you see one early on in the first level, and very rarely thereafter.
Arbitrarily placed, see-through, traversable, Portal-style portals probably would not have been beyond the skill of the engine implementers. But to make them work smoothly, along with everything else in the game, under the constraints of the hardware on which the game had to run? I find it hard to imagine anyone being able to pull that off, tbh.
- eatingCake 6y agoTo your point, I think that you could generate the duplicate geometry pretty easily but the issue would be making sure no overlapping sectors were visible at the same time, as that would cause glitches in the Build engine. You might be able to subdivide the build engine's sectors into visleaves (borrowing terminology from Source) and clip all sectors in the mirror-verse according to the aperture + view-frustrum. To work correctly you'd need to do this every frame, probably an unthinkably huge task for the hardware at the time.
- djmips 6y agoAs a 3D engine programmer from the era, I feel like portals could have been pulled off with relative ease. It's more a matter of wanting to do it. Someone today could demake Portal to a nineties era engine I'm sure.
- throwanem 6y agoYou'd certainly know better than I!
- desi_ninja 6y agothe original Prey was demoed in 1996 and had portals. portal has a lot of inspiration from that game
- fl0wenol 6y agoI think the trick would be to realize that the texture on the mirror or portal represents the same screen height and position, just at the virtual screen location of the mirror/portal player behind it. So you render the screen space column as the flipped/mirror column but move the camera, avoiding overdraw, and use the fact that back faces on the wall/mirror texture are invisible from out-of-bounds. Something like that. If you can lie to the engine and say that the flipped/portal camera is still inside the sector that the player is in (even if that's clearly wrong by the camera coords) then maybe your engine culls walls/floors/sprites not visible and you don't need to reserve an empty void for the mirror/portal camera to render from, so that level geometry can occupy the back side and make the illusion convincing.
- marcodiego 6y agoDoom with the portal gun would be fun.
- hgs3 6y agoDark Forces (a Star Wars 2.5D FPS from the 90's) used portal rendering. This let you create impossible geometry, like making a doorway that appeared to be for a small room on the outside was actually a portal to a larger room on the inside (think the Tardis from Doctor Who).
- Zardoz84 6y agoThere is "Portal" mod for DooM