Page 1 of 1

Support for light cookies

PostPosted: Wed Sep 09, 2020 1:28 pm
by tombube
Hi, I'm trying to use a distribution texture on a Light override component (similarly to an Unity Spotlight Cookie),
but it seems that the texture gets mapped incorrectly :/

The manual shows this:

Distribution - Controls the pattern of the light. You can set this to RGB, Greyscale, Texture, or an IES light profile. The image texture’s Projection nodes then adjust the orientation or direction of the light.


But when the texture gets set through the Light Override component, there is no way to change the image's Projection node from Unity directly, is by default incorrectly set to Mesh UV (which doesn't make sense for cookies)... Is there any support for regular Unity cookies or does anyone have experience with emulating them?

Re: Support for light cookies

PostPosted: Mon Nov 30, 2020 10:29 am
by tombube
Is there any info on this?

We're currently researching an option to go around this issue and fixthe incorrectly set projection node using a Lua script. The issue with this solution is that there's no way to trigger lua scripts from inside unity via scripting, so we have to record the scene to orbx, then modify the scene using Lua scripting with OctaneRender Standalone and then finally render it, which is highly inefficient.