Microstructures and shadow shading
1126 10 5- Tom Mangold
- Member
- 142 posts
- Joined: Nov. 2017
- Offline
Is there a proper way to have ultra fine structures AND correct shadows? : )
Well, displacements might actually "solve" the shading part, but the cost of displacing the geometry is enormous. Even with a 20GB gpu it's a burden and lottery.
I'm totally fine with the normal map results visually, but the shadow is just broken.
Image a is the horrible result, image b what I actually expect it to look like. In this case I just altered the shadow softness, but the steps are still visible.
Is there a way to render this correctly with Karma?
Bump mapping instead of real displacements gave me stretched mapping results while not getting the amount of detail achieved with the procedural normal map.
Anybody with suggestions?
Cheers
Tom
Well, displacements might actually "solve" the shading part, but the cost of displacing the geometry is enormous. Even with a 20GB gpu it's a burden and lottery.
I'm totally fine with the normal map results visually, but the shadow is just broken.
Image a is the horrible result, image b what I actually expect it to look like. In this case I just altered the shadow softness, but the steps are still visible.
Is there a way to render this correctly with Karma?
Bump mapping instead of real displacements gave me stretched mapping results while not getting the amount of detail achieved with the procedural normal map.
Anybody with suggestions?
Cheers
Tom
Edited by Tom Mangold - Sept. 13, 2024 12:23:53
- jsmack
- Member
- 8043 posts
- Joined: Sept. 2011
- Offline
- Tom Mangold
- Member
- 142 posts
- Joined: Nov. 2017
- Offline
Geo was rebuilt in Houdini and is fine. If I lower the amount of the texture the shadow gradually returns to be more correct, but at the cost of loosing the surface structure.
I tried the height to normal node and adding the procedural color noise to the normals (+normalizing the results). Both ways end with the same amount of hard shadow transition.
I tried the height to normal node and adding the procedural color noise to the normals (+normalizing the results). Both ways end with the same amount of hard shadow transition.
Edited by Tom Mangold - Sept. 13, 2024 12:28:32
- jsmack
- Member
- 8043 posts
- Joined: Sept. 2011
- Offline
Tom Mangold
Geo was rebuilt in Houdini and is fine. If I lower the amount of the texture the shadow gradually returns to be more correct, but at the cost of loosing the surface structure.
I tried the height to normal node and adding the procedural color noise to the normals (+normalizing the results). Both ways end with the same amount of hard shadow transition.
why is the shadow so hard, is it a point light? Increasing size of the light is another way to soften the shadow. With raytracing, the shadow is always a perfect white or black shadow with a point light. The thing that makes the shading fall off smoothly is the normals. Using an insanely rough normal map means that the normals are all facing random directions, so even samples right next to the terminator are possibly facing perpendicular to the surface, so the terminator has no room to transition. Using true displacements will make the shadow terminator smooth as the facets can only be facing so far before they are occluded by other facets. There might be methods employed by other renderers to fake this transition. Does it still happen if you use a normal clamp with a VEX material (cpu only)?
- Tom Mangold
- Member
- 142 posts
- Joined: Nov. 2017
- Offline
- Tom Mangold
- Member
- 142 posts
- Joined: Nov. 2017
- Offline
- racoonart
- Member
- 43 posts
- Joined: Feb. 2017
- Offline
What you're seeing there is the typical shadow terminator issue. Basically an issue concerning self-shadowing of polygons in conjunction with extreme shading normals. I'd suggest googling it instead of me explaining it wrong and making an ass out of myself but the "fix" is adding a render geometry settings node and bumping the "bump shadow terminator" value to something that works. You still need add a bit more geo to get rid of the remaining artifacts but it's helping quite a bit as you can see in the attached image.
Edited by racoonart - Sept. 13, 2024 15:03:09
- Tom Mangold
- Member
- 142 posts
- Joined: Nov. 2017
- Offline
- racoonart
- Member
- 43 posts
- Joined: Feb. 2017
- Offline
- Tom Mangold
- Member
- 142 posts
- Joined: Nov. 2017
- Offline
- ali_f
- Staff
- 42 posts
- Joined: May 2022
- Offline
-
- Quick Links