OSL Octane and Modo

Forums: OSL Octane and Modo
Foundry Modo (Developed by stenson, Integrated Plugin developed by Paul Kinnane)

Moderator: face_off

OSL Octane and Modo

Postby Mr_Uzu » Wed Feb 08, 2023 7:32 pm

Mr_Uzu Wed Feb 08, 2023 7:32 pm
Question as I'm thinking about diving more into topic of OSL but i'm a bit puzzled by information in the docs about OSL.

What i'm pursuing is taking particle positions (exact not some random stuff) and use it for texture replication.
I'm super green but this is the topic. Is is possible technically or OSL and Octane (following information from docs about pointclouds) doesn't really allow stuff like this?
Cheers,
Mat
Mr_Uzu
Licensed Customer
Licensed Customer
 
Posts: 7
Joined: Tue Dec 22, 2015 12:45 pm

Re: OSL Octane and Modo

Postby jobigoud » Mon Feb 13, 2023 10:36 am

jobigoud Mon Feb 13, 2023 10:36 am
(Not a Modo user, answer is based on standalone, hopefully this translates well)
There is no utility texture that will directly give you the particle position but if you can store it in a color vertex attribute, then in shading you can use a "Color vertex attribute" texture to get the position back and use it to drive your OSL texture.
What you can get directly is the shading point position, that is the point on the surface of the particle where the ray hit, this will be different for every point on the particle itself though so it depends on what you want to do.
User avatar
jobigoud
OctaneRender Team
OctaneRender Team
 
Posts: 230
Joined: Sat Aug 15, 2015 1:28 pm

Return to Foundry Modo


Who is online

Users browsing this forum: No registered users and 18 guests

Fri Apr 26, 2024 2:45 am [ UTC ]