deelan / webgl-loader

Automatically exported from code.google.com/p/webgl-loader
0 stars 0 forks source link

decodeParams.decodeScales Problems #31

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When the given decodeParams.decodeScales in the generated JS files (example 
below) is used for downloadModel / downloadMesh the model fails to display 
(can't see anything in the display). However if the default decoding params 
scales it works fine.

Example:
decodeScales: 
[0.205237,0.205237,0.205237,0.000978,0.000978,0.001957,0.001957,0.001957],

Defaults:
decodeScales: [1/8191, 1/8191, 1/8191, 1/1023, 1/1023, 1/1023, 1/1023, 1/1023],

The first three are the furthest off (1680x as large). The others are very 
close (either same or 2x as large). There are some rendering issues (things not 
lining up) and I presume it is because these decoding scales are not right.

Original issue reported on code.google.com by j...@coderforlife.com on 1 Mar 2012 at 3:19