Re: [Maya2osg-users] Patch for units
Status: Alpha
Brought to you by:
jtaibo
|
From: PP CG <pp...@cg...> - 2011-10-18 14:46:50
|
Hi J-S, just right now I wanted to send you how to get the Units in the Maya API :-) anyway, there will be problem with characters and skinning, as its not so trivial to just multiply some values. Hope we will find a good solution for this as well. Cheers, PP > Hi guys, > > I found out how to query what units were set in the Maya UI, so I made > a small modification to export using the correct units. > > Quick recap of the problem: Vertices and translations are always > returned in centimeters when using the Maya C++ API, no matter what > was set in the units settings in the Maya UI. > > That means that if we set the Maya UI to meters, and modeled a 1x1x1 > cube, when exporting, we would get a 100x100x100 cube. (100 centimeters) > > This modification will query what unit is set in the Maya UI, and > multiply vertex positions and translations to be in the correct units. > > Note that I have tested this on a relatively old version of maya2osg, > which is why I provide a patch - if I provided modified files they > would not match anyways, so it's clearer if you only see the changes > and can apply them. It's nothing complicated anyways. > > Thanks, > > J-S > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2d-oct > > > _______________________________________________ > Maya2osg-users mailing list > May...@li... > https://lists.sourceforge.net/lists/listinfo/maya2osg-users |