[X3D-Public] normals not computing right. hmm
john.carlson3 at sbcglobal.net
Sat Jul 7 13:25:37 PDT 2012
I realize that I should compute my own normals, but my code doesn't really have a way to compute 3 vertex positions at a time in its current form.
Should I use a IndexedTriangleStripSet instead, for better autocomputing of normals? That's what I did with X3D (see flowers3 below). I'm working with IndexedFaceSets and X3DOM now. I tried to normal correction code above (see above angle and fragNormal code) without much luck.
I don't have a X3D viewer on Ubuntu 12.04.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the X3D-Public