Octane OSL limits

Blender (Export script developed by yoyoz; Integrated Plugin developed by JimStar)
Post Reply
davorin
Licensed Customer
Posts: 150
Joined: Tue Oct 09, 2018 1:17 pm

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
Debian 10.2 on AMD 1950X, 64GB RAM, 2 * RTX2080Ti
Octane Blender Studio 2020.1-XB3-21.3
Blender 2.83 E_Cycles
linograndiotoy
OctaneRender Team
Posts: 1355
Joined: Thu Feb 01, 2018 7:10 pm

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.
OSL.PNG
davorin
Licensed Customer
Posts: 150
Joined: Tue Oct 09, 2018 1:17 pm

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....
Debian 10.2 on AMD 1950X, 64GB RAM, 2 * RTX2080Ti
Octane Blender Studio 2020.1-XB3-21.3
Blender 2.83 E_Cycles
J.C
Licensed Customer
Posts: 1857
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław

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/
CPU – i9 13900KF, 128GB RAM, GPU – RTX 4090
System – Windows 11
My Behance portfolio, Blender plugin FB support group
linograndiotoy
OctaneRender Team
Posts: 1355
Joined: Thu Feb 01, 2018 7:10 pm

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.
davorin
Licensed Customer
Posts: 150
Joined: Tue Oct 09, 2018 1:17 pm

Ah okay....hopefully there will be more in the future ;-)

And only color...output can't be transparent, right?
Debian 10.2 on AMD 1950X, 64GB RAM, 2 * RTX2080Ti
Octane Blender Studio 2020.1-XB3-21.3
Blender 2.83 E_Cycles
Post Reply

Return to “Blender”