this post was submitted on 02 Nov 2023
133 points (100.0% liked)

196

17222 readers
23 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.

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
[–] LesDeuxBonsYeux@sh.itjust.works 6 points 1 year ago (1 children)
[–] atocci@kbin.social 29 points 1 year ago (1 children)

The image on the left is called a "normal map". The weird colors are used to tell a game engine how lighting is meant to interact with a flat texture. It can create shadow and highlights on flat surfaces to mimic a 3D look without needing to use a higher detail model.

By combining the cobblestone texture in the caption with the normal map on the left, the game engine can create the realistically lit cobblestone street on the right out of just a flat plane.

[–] Sonotsugipaa@lemmy.dbzer0.com 11 points 1 year ago (1 children)

To be pedantic, they don't create shadows, they merely indicate which texels reflect light in which direction.

Shadows (ambient diffusion? idk) are more of a bump map thing, which normal maps are sometimes conflated with and they seem to be too much of a headache for me to look into.

[–] atocci@kbin.social 4 points 1 year ago (1 children)

True, no real shadows are being cast! Normal maps are bump maps though, could you be thinking of height maps?

[–] Sonotsugipaa@lemmy.dbzer0.com 2 points 1 year ago

I thought the two were the same, talk about conflating huh?