this post was submitted on 27 Apr 2025
430 points (99.5% liked)
196
5124 readers
504 users here now
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
Other rules
Behavior rules:
- No bigotry (transphobia, racism, etc…)
- No genocide denial
- No support for authoritarian behaviour (incl. Tankies)
- No namecalling
- Accounts from lemmygrad.ml, threads.net, or hexbear.net are held to higher standards
- Other things seen as cleary bad
Posting rules:
- No AI generated content (DALL-E etc…)
- No advertisements
- No gore / violence
- Mutual aid posts are not allowed
NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn't adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.
Also, when sharing art (comics etc.) please credit the creators.
If you have any questions, feel free to contact us on our matrix channel or email.
Other 196's:
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
When I saw the mirrors in Duke3D for the first time I wondered how they pulled that off. I had made a couple of Wolfenstein like tech demos at the time, going off the published stuff about the algorithms and techniques used by Carmack and Romero at the time (groundbreaking stuff). So I delved into it at the time and the way they did it was to have an identical but mirrored room behind the mirror. The mirror was just a transparent wall. And they had a sprite spawn in that looked like Duke and was controlled by the player.
Mirrors in games are hard.
Another trick that you can do is to render the scene from the mirror’s perspective. That way everything that needs to be seen in a reflection is there but also not taking up an entire extra room.
In Valve’s Source engine that is how the water reflections work. They can look absolutely perfect so long as you set props to reflect in the water.
That is called a render target and basically adds an entire full pass of frame computing (from this pov) which is why mirrors using this tech usually have an abysmal resolution. And generally some blur to hide it a little
It's been a while but there was something in the doom 3 engine that made it pretty good at render target efficiency right? I seem to remember they were able to do mirrors well, and it was also a gimick they liked to do a lot with the computer terminals you could interact with.
They took this tech a step further with Prey (2006), which used the doom 3 engine, to make portals you could see and shoot through. I can't remember if the portals were dynamic though.
This has been very interesting, thank you internet strangers!
:waves hands: cmon everybody what do we say
Nerds!
/s