Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom declared coordinate system

2 REPLIES 2
Reply
Message 1 of 3
rudy4HYXA
277 Views, 2 Replies

Custom declared coordinate system

Hello everyone

I am trying to write a custom shader to do an effect. I need to be able to reference the coordinate system of an object in the scene so that I can do some shading in relation to that position.

How do I tell Maya to insert an object into the scene as a coordinate system to which I can transform my shading points using OSL's transform("myCoordSys", P)?

Thanks so much

Tags (1)
Labels (1)
2 REPLIES 2
Message 2 of 3
rudy4HYXA
in reply to: rudy4HYXA

Hello there, any chance to get this questions passed the moderation phase?

Message 3 of 3
Stephen.Blair
in reply to: rudy4HYXA

I don't think Arnold supports anything other than the coordinate spaces listed in the OSL language specification. There's a version of transform() that takes an actual matrix. You could store the transformation matrix as user data on a shape, and get that user data with getattribute().



// Stephen Blair
// Arnold Renderer Support

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report