Page 1 of 1
Octane OSL limits
Posted: Sat Feb 08, 2020 10:45 am
by davorin
Good morning
Is there a possibility to show the OSL script used for a shader which is shown in OSLTex node as Internal?
Wasn't aware that OSL shaders can be rendered by GPU in the past....so trying to get some insights how to write own OSL shaders (o;
Also I am not sure about Octane OSL implementation in Blender...almost all OSL scripts I've found on the internet are not compatible and throw an error...
- Is OSLTex limited to just a color output?
Is there is no Alpha output or any more outputs I can generate for other nodes?
What do I use inside the shader function as variable to reflect the texture coordinate?
The Octane OSL documentation is rather small and other docs I've found are not suited.
thanks in advance
richard
Re: Octane OSL limits
Posted: Sun Feb 09, 2020 12:19 pm
by linograndiotoy
Any OSL script working in Octane Standalone will work in Octane for Blender as well.
You can always access an OSL script from a Standalone relative OSL node.
Also, you can find many OSL samples in the LiveDB you can download directly in Octane for Blender. The relative script will be there in the Text Editor.
Re: Octane OSL limits
Posted: Sun Feb 09, 2020 12:31 pm
by davorin
Ah I knew somehow it must be accessible (o;
But I am right...OSLTex can only have one output which is of type color with no alpha?
Maybe I can use several OSLTex nodes for color, displacement and so on....
Re: Octane OSL limits
Posted: Sun Feb 09, 2020 1:05 pm
by J.C
davorin wrote:Good morning
Is there a possibility to show the OSL script used for a shader which is shown in OSLTex node as Internal?
Wasn't aware that OSL shaders can be rendered by GPU in the past....so trying to get some insights how to write own OSL shaders (o;
Also I am not sure about Octane OSL implementation in Blender...almost all OSL scripts I've found on the internet are not compatible and throw an error...
- Is OSLTex limited to just a color output?
Is there is no Alpha output or any more outputs I can generate for other nodes?
What do I use inside the shader function as variable to reflect the texture coordinate?
The Octane OSL documentation is rather small and other docs I've found are not suited.
thanks in advance
richard
Most OSL scripts for eg Vray and other CPU engines won't work or will work after some adaptation in OctaneRender.
Octane OSL implementation has some missing features that may be implemented in the future.
https://docs.otoy.com/osl/features/
Re: Octane OSL limits
Posted: Sun Feb 09, 2020 4:37 pm
by linograndiotoy
davorin wrote:Ah I knew somehow it must be accessible (o;
But I am right...OSLTex can only have one output which is of type color with no alpha?
Maybe I can use several OSLTex nodes for color, displacement and so on....
Yes, one output only right now.
Re: Octane OSL limits
Posted: Sun Feb 09, 2020 4:43 pm
by davorin
Ah okay....hopefully there will be more in the future
And only color...output can't be transparent, right?