SahelFllh / opencollada

Automatically exported from code.google.com/p/opencollada
0 stars 0 forks source link

Incorrect default unit, centimeters instead of meters #190

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load a file without a unit tag specified.
2. Examine the FileInfo to find the units.
3. Examine the geometry to compute the bounds.

What is the expected output? What do you see instead?
I expect the output to use the default units of meters as defined by the 
COLLADA spec. I expect the bounds of the mesh to be, in m, the value of the 
bounds of the vertices.

Instead, I see that the units are in cm. Because of this, when my code converts 
to m, the object is incorrectly scaled down. The resulting bounds are 1/100 the 
correct size.

What version of the product are you using? On what operating system?
Latest svn, r871. This appears to have been incorrectly, and without 
explanation, introduced in r366.

Please provide any additional information below.
Reverting most of (but not all) of r366 will likely fix the problem.

If possible, please provide a sample file that can be used to reproduce the
problem.
http://open3dhub.com/download/b38ea3aebcdd9a384d09615baa1011cdb8ff86040fd2921c7c
fa8379c62f75e4/mapgen_terrain_1.dae

Original issue reported on code.google.com by echesl...@gmail.com on 25 Jun 2012 at 8:21