Page 1 of 1

Bump, height map to normal ?

Posted: Sun Apr 03, 2022 1:23 am
by SSmolak
Hello, is there script to convert bump, height to normal map ? I tried this OSL https://gist.github.com/yratof/0b6f704b ... 63c8c9dde9 but I can't get it to work.

Re: Bump, height map to normal ?

Posted: Mon Apr 04, 2022 6:52 am
by bepeg4d
Hi,
have a look at here:
viewtopic.php?f=87&t=71721&p=363515&hil ... mp#p363515

ciao,
Beppe

Re: Bump, height map to normal ?

Posted: Mon Apr 04, 2022 10:06 am
by SSmolak
elsksa wrote:Hi,
Additionally, I'd recommend looking a stand-alone software (a few are capable). There are varying algorithms/implementation and baking is, optimization wise, a benefit.
Yes, but I think to use it mainly for Octane procedurals and OSL.

Re: Bump, height map to normal ?

Posted: Mon Apr 04, 2022 11:43 am
by jobigoud
SSmolak wrote: Yes, but I think to use it mainly for Octane procedurals and OSL.
Did you make sure to use the OSL Delayed UV projection on the input texture?
If the input height map is itself an OSL texture and doesn't have a projection pin you need to add it and use the resulting value in the code. Otherwise the calls to _evaluateDelayed from the HeightToNormal texture won't work.