this post was submitted on 27 Apr 2025
430 points (99.5% liked)

196

5125 readers
1394 users here now

Be sure to follow the rule before you head out.


Rule: You must post before you leave.



Other rules

Behavior rules:

Posting rules:

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
 

If it did, all you'd see was a smudgy stick figure in most cases

top 8 comments
sorted by: hot top controversial new old
[–] Thorry84@feddit.nl 51 points 3 days ago (1 children)

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.

[–] oxysis@lemmy.blahaj.zone 27 points 3 days ago (1 children)

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.

[–] Sylvartas@lemmy.dbzer0.com 20 points 3 days ago (2 children)

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

[–] Fitzsimmons@lemmy.blahaj.zone 2 points 2 days ago

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.

[–] A_Union_of_Kobolds@lemmy.world 2 points 3 days ago* (last edited 3 days ago) (1 children)

This has been very interesting, thank you internet strangers!

:waves hands: cmon everybody what do we say

[–] Zdvarko@lemmy.world 3 points 2 days ago
[–] kopasz7@sh.itjust.works 5 points 2 days ago

Nvidia RTX: what are matte surfaces?

[–] pennomi@lemmy.world 8 points 3 days ago

You’d generally see two disembodied hands and some legs if it showed a real reflection. Most games don’t render the whole player.