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

How to embed motion keys in matrix?

2 ANTWORTEN 2
Antworten
Nachricht 1 von 3
AaronWPowell
321 Aufrufe, 2 Antworten

How to embed motion keys in matrix?

I'm trying to implement motion blur with the Arnold API and running into a wall. I've figured out I need to add motion keys to the transform matrix for transformation blur and motion keys to the vlist and nlist arrays for deformation blur, but it's not clear in the documentation how to do so assuming I have the transformation data I need.

Essentially, how do I add this info to an AtMatrix or AtArray?

Tags (2)
Beschriftungen (2)
2 ANTWORTEN 2
Nachricht 2 von 3
Stephen.Blair
als Antwort auf: AaronWPowell

Here's some pseudocode for it:

AtMatrix matrix; 
AtArray* matrices = AiArrayAllocate(1, GetNumMotionSteps(), AI_TYPE_MATRIX);
for each motion step:
    AiArraySetMtx(matrices, GetMotionStep(), matrix);
AiNodeSetArray(node, "matrix", matrices);






// Stephen Blair
// Arnold Renderer Support
Nachricht 3 von 3
AaronWPowell
als Antwort auf: AaronWPowell

Fantastic, this looks easy enough. I'll give it a go. Thanks!

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