Page 1 of 1
OSL Displacement
Posted: Thu Dec 27, 2018 3:00 pm
by Benj1
Hello,
I'm a beginner in OSL on octane.
How can I make work the OSL closures with the displacement node ?
What output type ?
Should it be scripted and switched the actual displacement node directly into the script OSl ?
Thank you,
Benjamin
Re: OSL Displacement
Posted: Fri Dec 28, 2018 10:33 am
by bepeg4d
Hi Benjamin,
please, have a look at this other discussion here:
viewtopic.php?f=33&t=63905&p=325568&hil ... sl#p325568
The closure variables are not supported in the current implementation of OSL.
Please, have a look also at this site to have more info about the OSL implementation in OctaneRender:
https://docs.otoy.com/osl/
ciao Beppe
Re: OSL Displacement
Posted: Fri Dec 28, 2018 12:44 pm
by Benj1
Hello Beppe,
Thank you for your reply.
The output of "texture" OSL is a color type, why if i put this output at displacement node it doesn't work ?
Benj
Re: OSL Displacement
Posted: Fri Dec 28, 2018 2:12 pm
by calus
Benj1 wrote:Hello Beppe,
Thank you for your reply.
The output of "texture" OSL is a color type, why if i put this output at displacement node it doesn't work ?
Benj
Octane displacement currently only support image texture as input, but it's possible to bake on the fly any texture graph input in the BakedImageTexture node, including OSL shaders.
Also, in Octane 2018.1, true OSl displacement is possible but only on OSL geometry or VDB levelset surface for the momment.
Re: OSL Displacement
Posted: Fri Dec 28, 2018 9:47 pm
by Benj1
Thank you ! I'm going to check that.