Could someone help me out.
Octane supports only 4 gray scale vertex attributes and only 2 vector vertex attributes.
In my setup that is not enough. So I would like to put 3 single float attributes in one vector and split this in OSL.
My question is: can you use the argument 'getattribute' to get and attribute from the geometry and use it in OSL (for example a vertex color attribute)?
Because I can not get it working. Help would be appreciated.
I got this (in this test I only put a float attribute on the geometry named: a).
shader OslTexture(
output color c = 0)
{
float b = 0.0;
getattribute("geom:a",b);
c = color(b, b, b);
}
Overview of OSL Shaders in Octane
Forum rules
NOTE: The software in this forum is not %100 reliable, they are development builds and are meant for testing by experienced octane users. If you are a new octane user, we recommend to use the current stable release from the 'Commercial Product News & Releases' forum.
NOTE: The software in this forum is not %100 reliable, they are development builds and are meant for testing by experienced octane users. If you are a new octane user, we recommend to use the current stable release from the 'Commercial Product News & Releases' forum.
- PolderAnimation
- Posts: 373
- Joined: Mon Oct 10, 2011 10:23 am
- Location: Netherlands
- Contact:
Win 10 64bit | RTX 3090 | i9 7960X | 64GB
Brilliant. Can you give us the link to the 100+ shaders and the documentation for how to use them please?Goldorak wrote:Universal camera among other 2019 features and new nodes is pure OSL. I promised you we’d bundle 100+ shaders in the 2019 release cycle, we’re doing that even if you don’t see the shader code (that’s the point - meant to be artist friendly).Rik wrote:Wow. So OSL really took off then?
Great work with all those samples.
FFS
I assume you’ve seen the OSL vector displacement and volume shading too in 2019.1?
Maybe this is completely non-sensical, but isn`t there a way in LUA to combine a 'false light' pass with an extra 'exposure' pass so you can control with areas that are 'under-lit'?
In high-end interior (hdr) photography they take multiple shots and combine them in post or use something like merge-hdr / tonemapping multiple exposures, but this could be a nice quick addon to bring more realism / more details.

In high-end interior (hdr) photography they take multiple shots and combine them in post or use something like merge-hdr / tonemapping multiple exposures, but this could be a nice quick addon to bring more realism / more details.
Octane 2022.1.1 nv535.98
x201t - gtx580 - egpu ec
Dell G5 - 16GB - dgpu GTX1060 - TB3 egpu @ 1060 / RTX 4090
Octane Render experiments - ♩ ♪ ♫ ♬
x201t - gtx580 - egpu ec
Dell G5 - 16GB - dgpu GTX1060 - TB3 egpu @ 1060 / RTX 4090
Octane Render experiments - ♩ ♪ ♫ ♬