OSL normals
Posted: Thu May 09, 2019 9:32 am
Hi all,
I've been playing around with OSL textures and trying to generate some normal maps. I'm seeing some weird behaviour which I'm hoping someone can shed some light on.
Here's a simple scene with a white diffuse model:
Next I've created a simple (REALLY simple) OSL texture that just sets the colour to the Geometric normal of the surface. I've applied the texture to the diffuse channel and it looks like the kind of thing one would expect:
Finally I applied the Geometric Normal texture to the texture slot on the diffuse material. I was hoping this would do nothing and render like the first image, but it's getting strange artifacts:
Does anyone know what's going on? Do I need to transform the geometric normal in OSL to something else?
Cheers,
James.
I've been playing around with OSL textures and trying to generate some normal maps. I'm seeing some weird behaviour which I'm hoping someone can shed some light on.
Here's a simple scene with a white diffuse model:
Next I've created a simple (REALLY simple) OSL texture that just sets the colour to the Geometric normal of the surface. I've applied the texture to the diffuse channel and it looks like the kind of thing one would expect:
Finally I applied the Geometric Normal texture to the texture slot on the diffuse material. I was hoping this would do nothing and render like the first image, but it's getting strange artifacts:
Does anyone know what's going on? Do I need to transform the geometric normal in OSL to something else?
Cheers,
James.