Page 1 of 1

OSL Node issue

PostPosted: Wed Dec 05, 2018 10:00 am
by AndreasResch
Hey.

On OSL script was posted to randomize UV transformation which is supposed to work in the standalone version. It doesn't seem to work in Blender. I get a "No shader function defined" error. Maybe something to investigate.

Here's the link to the OSL thread ... https://render.otoy.com/forum/viewtopic.php?f=73&t=69211

Cheerio,
Andreas

Re: OSL Node issue

PostPosted: Wed Dec 05, 2018 11:44 am
by J.C
Got it working. I attach example file.
There is one issue with it. It does not work until you press script update button and change some value on it. In Standalone it works instantly.

Re: OSL Node issue

PostPosted: Wed Dec 05, 2018 11:50 am
by AndreasResch
It seems as if there's an issue with refering to the OSL file externally. Copying the code into Blender and using it internally works. So the error might be easier to find now.

Re: OSL Node issue

PostPosted: Wed Dec 05, 2018 11:52 am
by J.C
With External OSL loading the script gives errors. "Compilation failed" etc.
There are also errors in log:
Code: Select all
Node type 6 is either unknown, a linker or incompatible to static pin 'rotation' (P_ROTATION, type PT_TEXTURE) of node 'mat octane' (NT_MAT_GLOSSY, 0x7fcaa9102580)
Absolute path specified, but after normalization there are still some '..' left. Removing these...

Re: OSL Node issue

PostPosted: Wed Dec 05, 2018 3:28 pm
by J.C
In final rendering the osl script does not work.

Re: OSL Node issue

PostPosted: Thu Dec 06, 2018 6:30 am
by AndreasResch
It does not work when you restart the Preview render either. Only when you start to move the sliders while Preview is running.

Re: OSL Node issue

PostPosted: Tue Dec 18, 2018 10:32 pm
by J.C
Bug still present on 16.3.1 OSX version. It's even worse. Rotation and scale does not work. Loading from file results with the same error.

Re: OSL Node issue

PostPosted: Wed Dec 19, 2018 7:55 am
by DrawFun
Hi AndreasResch and J.C,

Thanks for your report. I am looking into it now.

Cheers,
DrawFun