Community
Arnold General Rendering Forum
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Custom declared coordinate system

2 ANTWORTEN 2
Antworten
Nachricht 1 von 3
Anonymous
390 Aufrufe, 2 Antworten

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)
Beschriftungen (1)
2 ANTWORTEN 2
Nachricht 2 von 3
Anonymous
als Antwort auf: Anonymous

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

Nachricht 3 von 3
Stephen.Blair
als Antwort auf: Anonymous

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

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report