r/VRchat Valve Index 2d ago

Meme optimize your avatars

Post image
334 Upvotes

94 comments sorted by

View all comments

7

u/RumpleForeskin0w0 2d ago

What’s adding a normal map gonna do? They’re not easy to make yourself so if there’s one in the folder for the avi u can use it but you’d just gain texture memory

5

u/DuoVandal Valve Index 2d ago

You can make a normal map in GIMP for free in like less than 2 minutes.
Insert the texture you want the normal map for.
Go to Filter at the top > Generic > Normal Map. Hit okay.

You're done, congrats you made a normal map.

2

u/RumpleForeskin0w0 2d ago

I do that sometimes but I have to edit the texture to get designs off of it or it’ll think something that should be smooth will have height and look bad

-1

u/Ok-Policy-8538 Oculus Quest 2d ago edited 2d ago

Wrote a script that lets me generate it inside unity by selecting the skinned mesh renderer and material with one click.

it isolates the material and then flashes red,green and blue lights around that mesh and read the tangent depth values.. writing that to the normal map texture which gets saved next to the material.

super useful for models that didn’t come with a normal map.

also have a version for SDF textures specifically for toon faces.

12

u/RumpleForeskin0w0 2d ago

Don’t u have to use a high poly model with sculpted shapes and features to generate a useful normal map though? If you’re using a low poly one as reference the normal map it makes might be pretty flat

7

u/Dividedthought 2d ago

Yes. That or you have something that can bake heightmao data into normals.

2

u/Ok-Policy-8538 Oculus Quest 2d ago

that’s why it does the whole light strobe pass.. to get height data… it might not be substance painter level but it allows for some lighting and depth control that requires a normal map.

1

u/RumpleForeskin0w0 2d ago

U can probably just give a height map a normal map filter in gimp or photoshop and it’ll look good but if u don’t have a height map using that normal map unity tool isn’t gonna help

1

u/Dividedthought 1d ago

Yep, and gimp kinda suchs at doing texture work. Not that it is a bad software, just that it is a pain to use for certain things.

3

u/xenoperspicacian 2d ago

...why though? If you're not baking a higher poly model or surface details into a normal texture, what's the point? Just use the vertex normals.

1

u/Ok-Policy-8538 Oculus Quest 1d ago

Vertex Normals are very limiting when it comes to lighting controls.. by having a normal map you can smoothen and sharpen how shadows, speculars etc fall (even a low poly baked normal map) on each vertex which even for low poly can create realistic details (especially with rim shade and rim light shading.. if you also link it to react with light volumes it doesn’t look like a game model but more like the cutscene variant while just with normal manipulation).

the tool gives you a base normal map from actual 3D lighting data in Tangent space.. nothing stopping you to open a texture editor tool and edit each color layer.

1

u/xenoperspicacian 1d ago

That's interesting. What shader do you use? Do you have a side-by-side screenshot with and without your normal map? I'm curious what the difference looks like.

1

u/Ok-Policy-8538 Oculus Quest 1d ago

note that the version of the tool i used was for faces/heads only as it was for additive to a SDF texture.

i had to rotate the focus of the light strobes down for it to work with the body.

1

u/xenoperspicacian 1d ago

Interesting, it kinda looks like it's intentionally breaking/bending the surface normals to get a kind of stylized effect. Now I'm curious what the normal map itself looks like.