displacement mapping osl nodes

Hey there,

i just realiezed how great the integration of the OSL is. I am trying to displace my vertex geometry with noise. but had no success so far.
I am working with the shading nodes and try to use the displacement input of the material output. This is not working. What exactly is this for?
I also tried to use the texture which is the result of the shading as an input for a displacement modiefier but also had no success because i can not choose the desired input texture generated bei the shader.

any ideas how to realise a real displacement with osl?


Hi blow,

In your OS scriptL the output must be a color not a vector!
Try with a simple Noise texture node rather!

Take a look here for the OSL problems, please:
https://developer.blender.org/T36368

Warning: For displacement modifier:
Don’t forget you need to subdivide you mesh a lot
because displacement modifier needs to move verts !
Add a subdivision surface modifier before, and you should see it in the viewport !

Ok thanks for the infos.
I see. I managed to get displacement work with a simple noise texture.
Hopefully this feature get implemented soon.

In your OS scriptL the output must be a color not a vector!
Try with a simple Noise texture node rather!