material-maker icon indicating copy to clipboard operation
material-maker copied to clipboard

Add Depth output to Normal Map node

Open myaaaaaaaaa opened this issue 3 years ago • 2 comments

Adds a "Depth" output whose scale is linked to the strength of the normal map, to streamline height-only workflows.

Intended usage: 1666807922

The Normal Map node being proposed by this pull request: 1666808881

myaaaaaaaaa avatar Oct 26 '22 18:10 myaaaaaaaaa

It's a neat trick, but multiplying depth might be a bad idea for high values of Strength. If anything, I'd remove the multiplier node. Correlation between normal map and height map depends on the model anyway.

RodZill4 avatar Oct 27 '22 06:10 RodZill4

Thanks for the feedback! The idea is that the exact ratio between normal and depth can be adjusted with the material's depth_scale parameter, which can be set once based on the model's uv scale. Afterwards, the Strength parameter would be used to tweak heightmap scale with correct normals automatically applied, which I find especially useful for quick experimenting.

Workflows where normal and depth are less correlated would of course calculate depth from height themselves, and would not use this new Depth output.

myaaaaaaaaa avatar Oct 28 '22 15:10 myaaaaaaaaa