Jump to content

3DS max pivot not exported


X3MC2
 Share

Recommended Posts

Hiya x3! 

 Perhaps, you set "working pivot" in 3D Max? 

http://docs.autodesk.com/3DSMAX/15/ENU/3ds-Max-Help/index.html?url=files/GUID-D2A59192-0A81-49D5-AAA1-E6898D0B3957.htm,topicNumber=d30e231195

(also, see the link to working pivot on the bottom of that page)

I think there are some important differences between pivot, and working-pivot.  I think you want to avoid working pivot.

https://github.com/BabylonJS/Babylon.js/blob/master/Exporters/3ds Max/BabylonExport.Entities/BabylonMesh.cs#L27

pivotMatrix is one of the exported entities, according to that.   (Duh, Wingy, X3M showed it within the file... in his picture!  Now why is it null?)  :)

I'm not too bright, sometimes. heh.  I'll keep thinking.

Link to comment
Share on other sites

9 hours ago, Wingnut said:

Hiya x3! 

 Perhaps, you set "working pivot" in 3D Max? 

http://docs.autodesk.com/3DSMAX/15/ENU/3ds-Max-Help/index.html?url=files/GUID-D2A59192-0A81-49D5-AAA1-E6898D0B3957.htm,topicNumber=d30e231195

(also, the see the link to working pivot on the bottom of that page)

I think there are some important differences between pivot, and working-pivot.  I think you want to avoid working pivot.

https://github.com/BabylonJS/Babylon.js/blob/master/Exporters/3ds Max/BabylonExport.Entities/BabylonMesh.cs#L27

pivotMatrix is one of the exported entities, according to that.   (Duh, Wingy, X3M showed it within the file... in his picture!  Now why is it null?)  :)

I'm not too bright, sometimes. heh.  I'll keep thinking.

Tried with pivot and working pivot, still the same, maybe the devs forgot to implement it because I can't find an option for it anywhere in the exporter. Well I think I'll just keep modifying it with notepad until I find the exact position. 

Have a nice day!

Link to comment
Share on other sites

1 hour ago, Temechon said:

By updating the pivot in 3DSMax, you need to do a 'Reset X-Form' on the object. Otherwise it's not exported.

Bingo, you sir deserve a cookie ! You saved me the time and effort of adjusting the pivot and compensating the translation. Now its fits perfectly the 3DS max pivot ! No need for code ! 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...