Chris_TC wrote:
I have a question regarding matrices, maybe somebody can help? For all building elements I am storing a 4x4 matrix that contains scaling, translation and rotation data (I use the "SRT to Matrix" node). Now I will need to store additional information for some elements, such as extrusion length, floor type etc. I would like to store all of this additional data in the same 4x4 matrix because that would keep things neat and clean.
It appears that the LAST COLUMN of this matrix always says 0,0,0,1 - regardless of what values I choose in the "SRT to Matrix". Am I right in assuming that I can simply use these 4 slots to store scalar data without EVER destroying the SRT info?
I suppose you could as long as you are very careful to set those values back before using the matrix as a transform in any way because once you change those values, the matrix no longer represents a valid transformation. However, I don't think that all the packing and unpacking of matrices that would be required is any more "neat and clean" than storing separate attributes -- quite the opposite in fact.