Comments (5)
Interesting...it appears you've hit a difficult to encode value, which I
thought should be impossible based on the existing bounds params, but I'm
definitely able to reproduce this. Taking a look now.
Original comment by wonchun
on 9 Apr 2012 at 9:48
from webgl-loader.
Ah, there are some normals with very large values, like:
vn -65.964500 26.871040 -325.114197
And the quantization code assumes that normal components are in [-1, 1]. On one
hand, it is probably a good idea to be able to preserve the actual inputs. On
the other hand, the easy thing is to just automatically normalize vn inputs.
I'm leaning to the latter. Any thoughts?
Original comment by wonchun
on 9 Apr 2012 at 10:20
- Changed state: Started
from webgl-loader.
Normalization is probably the way to go. Is the magnitude of the normal vector
ever actually used in ANY 3D render? I will ask about this from my source as
well.
Original comment by [email protected]
on 9 Apr 2012 at 10:39
from webgl-loader.
It might matter if you want to interpolate normals before normalizations. You
can use the magnitude of the normal to act as a weight. I agree it is not
obvious. I'm about to land the feature, and when I go through and hook up
flags, then I'll have it default to normalize, but have it be switchable.
Original comment by wonchun
on 9 Apr 2012 at 11:29
from webgl-loader.
This issue was closed by revision r83.
Original comment by wonchun
on 9 Apr 2012 at 11:34
- Changed state: Fixed
from webgl-loader.
Related Issues (20)
- Bad attribute handling in demos HOT 1
- UTF8Loader, ArrayBufferView size is not a small enough positive integer HOT 4
- objcompress.cc doesn't compile HOT 10
- Segfault on (valid?) OBJ file HOT 7
- Texture UVs computed incorrectly HOT 9
- Lossless Float Compression: add discussion to Wiki HOT 6
- Simple 3D model textured to open-3d-viewer HOT 6
- Unable to Compile on Windows (format specification for size_t is %Iu no %zu) HOT 4
- Unable to convert OBJ with normals (VN) made by IMOD HOT 2
- MSVC Compile Problems
- decodeParams.decodeScales Problems
- MTL Support Not Complete HOT 3
- Add flag for using white for missing materials instead of error HOT 2
- Add flag to output minified JS instead of well-formatted JS HOT 4
- Allow arguments to have paths HOT 1
- Document how to use output of objcompress HOT 1
- WARNING: s ignored in line [...] HOT 1
- ERROR: bad second index at line [...] HOT 1
- Utf8 model got 'deviance' at UV seam? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webgl-loader.