Bifrost Forum
Welcome to the Bifrost Forum. This is the place for artists using Bifrost to ask and answer questions, browse popular topics, and share knowledge about creating effects procedurally using Bifrost. You can also visit the Bifrost Community on AREA to download an array of ready-to-use graphs, read Bifrost news and updates, and find the latest tutorials.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Simple Matrix Calc Issue

Message 1 of 4
202 Views, 3 Replies

Simple Matrix Calc Issue

I have issues performing simple matrix calculations.

I need to convert a world space transform to a local transform.
So the equation is fairly simple :
Loc_Mtx = World_Mtx x Parent_World_INV_Mtx

I isolated the problem into the simplest possible graphs.
Using Maya nodes, everything works as expected. The Target and Result transforms correspond 1 on 1.
(note that the bogus grps are translated and rotated randomly (not scaled for test purposed))

I'm trying to do exactly the same thing in Bifrost (rotation order is default XYZ for everything)
It 'should be quite trivial, but the Result does not correspond to the Target... ???

Does anyone have a solution for this simple matrix calc problem?


I'm in Maya 2024 / BIF

Message 2 of 4
in reply to: mitch.s

Have you tried reversing the order of matrix multiplication? Maya uses row vectors, but Bifrost uses column vectors. Matrices get converted (i.e. transposed) automatically going in and out of the graph, but for multiplication in the graph the transform that is applied "first" goes on the right (bottom input of the matrix_multiply node), i.e. Translate x Rotate x Scale in Bifrost is equivalent to Scale x Rotate x Translate in Maya.


It's a common issue when adapting transformations between different systems or from different textbooks.


I hope that helps,


Grahame Fuller
Learning Content Developer
Message 3 of 4
in reply to: Grahame_Fuller

Thanks a lot... this works indeed!
But, holy guacamole, what a mindf#!%.

Message 4 of 4
in reply to: mitch.s

This might help.


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

Post to forums