X3MC2 Posted September 14, 2016 Share Posted September 14, 2016 Hi there, It seems like the exporter ignores my pivot changes and sets it to null each time I export the scene, I'm I missing something ? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted September 14, 2016 Share Posted September 14, 2016 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. Quote Link to comment Share on other sites More sharing options...
X3MC2 Posted September 15, 2016 Author Share Posted September 15, 2016 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! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 15, 2016 Share Posted September 15, 2016 Hey! Actually, 3dsmax exporter merge the pivot with the worldmatrix. Quote Link to comment Share on other sites More sharing options...
Temechon Posted September 18, 2016 Share Posted September 18, 2016 By updating the pivot in 3DSMax, you need to do a 'Reset X-Form' on the object. Otherwise it's not exported. X3MC2 and Wingnut 2 Quote Link to comment Share on other sites More sharing options...
X3MC2 Posted September 18, 2016 Author Share Posted September 18, 2016 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 ! GameMonetize and Wingnut 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.