OSL getattribute question

Generic forum to discuss Octane Render, post ideas and suggest improvements.
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
Post Reply
User avatar
PolderAnimation
Licensed Customer
Posts: 380
Joined: Mon Oct 10, 2011 10:23 am
Location: Netherlands
Contact:

Could use some help here.

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);
}
Win 11 | Dual RTX 5090 | AMD Ryzen 9 9950X| 192GB
Post Reply

Return to “General Discussion”