Octane OSL limits

Forums: Octane OSL limits
Blender (Export script developed by yoyoz; Integrated Plugin developed by JimStar)

Octane OSL limits

Postby davorin » Sat Feb 08, 2020 10:45 am

davorin Sat Feb 08, 2020 10:45 am
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
davorin
Licensed Customer
Licensed Customer
 
Posts: 150
Joined: Tue Oct 09, 2018 1:17 pm

Re: Octane OSL limits

Postby linograndiotoy » Sun Feb 09, 2020 12:19 pm

linograndiotoy Sun Feb 09, 2020 12:19 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
linograndiotoy
OctaneRender Team
OctaneRender Team
 
Posts: 1155
Joined: Thu Feb 01, 2018 7:10 pm

Re: Octane OSL limits

Postby davorin » Sun Feb 09, 2020 12:31 pm

davorin Sun Feb 09, 2020 12:31 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
davorin
Licensed Customer
Licensed Customer
 
Posts: 150
Joined: Tue Oct 09, 2018 1:17 pm

Re: Octane OSL limits

Postby J.C » Sun Feb 09, 2020 1:05 pm

J.C Sun Feb 09, 2020 1:05 pm
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
J.C
Licensed Customer
Licensed Customer
 
Posts: 1720
Joined: Thu May 13, 2010 6:35 pm
Location: Wrocław

Re: Octane OSL limits

Postby linograndiotoy » Sun Feb 09, 2020 4:37 pm

linograndiotoy Sun Feb 09, 2020 4:37 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.
linograndiotoy
OctaneRender Team
OctaneRender Team
 
Posts: 1155
Joined: Thu Feb 01, 2018 7:10 pm

Re: Octane OSL limits

Postby davorin » Sun Feb 09, 2020 4:43 pm

davorin Sun Feb 09, 2020 4:43 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
davorin
Licensed Customer
Licensed Customer
 
Posts: 150
Joined: Tue Oct 09, 2018 1:17 pm

Return to Blender


Who is online

Users browsing this forum: No registered users and 6 guests

Thu Apr 18, 2024 5:46 am [ UTC ]