Page MenuHome

Turning on OSL breaks node material with Normal node
Closed, ResolvedPublic


System Information
Linux Mint 19 Cinnamon
GeForce GTZ 1050 Ti

Blender Version
Broken: Blender 2.79 2017-09-11
Worked: (optional)

Short description of error
Turning on Open Shading Language breaks a cycles material that uses a Normal node. The output of the shader is black.

Exact steps for others to reproduce the error

The cycles material in the attached blend file works as expected if Open Shader Langauge is unchecked in the Render panel.

The material is completely black if Open Shader Langauge is checked.

The problem appears to be with the Normal node, as feeding the Normal output of the Geometry node directly into the Emission node works whether OSL is on or off.

This has been duplicated in 2018-08-06 build of 2.79.

Event Timeline

Brecht Van Lommel (brecht) changed the task status from Unknown Status to Resolved.Aug 31 2018, 12:02 PM
Brecht Van Lommel (brecht) claimed this task.

This appears to be fixed in the very latest build.

In 2.79b there's this error in the console, but in the latest master we upgraded to a newer OSL which automatically does the conversion.

WARNING: attempting to set parameter with wrong type: direction (expected 'normal', received 'vector')