matrix in 3dsmax

3D Studio Max Plugin (Export Script Plugins developed by [gk] and KilaD; Integrated Plugin developed by Karba)
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
Post Reply
User avatar
AleksBraz
Licensed Customer
Posts: 30
Joined: Fri Jul 29, 2011 2:29 pm
Location: Brazil
Contact:

Hi everyone,

I got the matrix transformation to one object using max script.
I selected the object and I used this comand line: ''Transform_matrix = $.transform''
Then the answer was (matrix3 [4.97326,0.871754,0] [-0.871754,4.97326,0] [0,0,5.04909] [87.0011,-93.2884,0])
ok I was happy then I opened Octane Stand Alone and past the code (4.97326 0.871754 0 -0.871754 4.97326 0 0 0 5.04909 87.0011 -93.2884 0) in scatter node.
My object appears warped, probably because the way that 3dsmax generates the matrix isn't that correct for octane read.
Could anyone help me with this? I would like use simple Object Paint in max then extract the correct matrix for octane.

Thanks
vanhage
Licensed Customer
Posts: 31
Joined: Sun Jan 20, 2013 4:00 pm
Location: Brooklyn, NY, USA

While I'm not a max user, I can tell that the structure of the data you pasted is not properly formatted for what the scatter node is looking for as an input. I could be wrong, but your data is 4 sets of 3 values (12 total), where the correct structure would be 3 sets of 4 values (still 12 total). The correct input is a 4x4 matrix where you leave the bottom row of (hence 3 sets of 4). Take a look at the pdf in the link below and maybe it may make more sense, there is a section which goes into explaining what the different values mean in the matrix:

http://www.grasshopper3d.com/profiles/b ... ics-second

To reframe AleksBraz's question, does anyone know how to modify what was pasted from max to get the scatter to work properly? Or do you know another way of getting the 4x4 transformation matrix data from an object in max?
Win 8 64 | 2X Geforce GTX680 | i7-3770K Ivy Bridge 3.5GHz | 32GB
kilaD
Licensed Customer
Posts: 215
Joined: Sun Mar 21, 2010 12:34 pm
Location: Norway
Contact:

Getting the transform from an object in max is as you wrote, $.transform. (4 point3's -> point3 = [0,0,0]) The last point3 is the position/translation.
The problem is probably that max up vector is Z and octane up vector is Y (i would guess).

You could try to switch the y and z values in each point3.
Hello
Post Reply

Return to “Autodesk 3Ds Max”