Multi-line and Script Puzzles
We continued improving the previously introduced multi-line text and script puzzles. For this update, we fixed various crashes and UI issues.
The multi-line puzzle under the hood is based on the embeddable Ace editor, particularly used in Amazon’s Cloud9 code editor. The features it provides include syntax highlighting, line numbering, automatic indentation, code folding, and live syntax checker.
OSL
We further improved the support for OSL nodes. Particularly, we fixed some crashes happening when converting OSL code to GLSL.
The script osl2glsl.py
is now available for manual converting and debugging. The converter itself has been open-sourced under the MIT license and available on Github.
Blender-specific
We supported the Cycles node Wavelength, which converts a wavelength value to an RGB value. This can be used to obtain a specific color on the light spectrum.
Max-specific
We fixed the issue with disappearing OSL Map when the code is typed inside the map rather than loaded from an external file.
Maya-specific
You can now create custom real-time shaders using the Open Shading Language (OSL). OSL code can be provided to the shader through the aiOslShader node.
Skinning for multi-material objects is now supported.
Bug fixes
Puzzle active camera now properly works with enable/disable rendering puzzles (thanks for the report).
Image-based lighting can now be properly switched in VR mode (thanks for the report).
We fixed the issue with the export to gltf puzzle resulted in missing UVs.