View Single Post
Old 22nd January 2012, 06:18 PM   #1
thorax
Junior Member
Member
 
Join Date: Nov 2011
Posts: 10
Default Collada import not considering <unit /> tag therefore importing incorrect scale

Hi, i have some COLLADA DAE files that have a <unit /> tag like this case:

Code:
<unit meter="1" name="meter"/>
everything works fine with meter=1
the problem lies when the scale is in inches. for instance:

Code:
<unit name="inches" meter="0.0254"/>
After importing a COLLADA DAE file with this "constant" the object is loaded with an incorrect scale and needs to be scaled down to 2.54% to maintain the original scale.

Is there a way to "tell" ac3d that units are inches with some kind of environment variable? i need to switch between "meter" and "inches" depending on the object

thank you.
thorax is offline   Reply With Quote