I'm just discovering X3DOM and playing with it. I have draw a chair with sketchup and converted to x3d with meshlab. I'm using the "html5" syntax to write my page. Depending on "something" I have diferent rendering and I don't know what.
Rendering I consider ok: http://aws.ysagon.com/x3d/x3dom/ok.html
Rendering I consider not ok: http://aws.ysagon.com/x3d/x3dom/bad.html
What bother me is that the one I consider ok is the one with html error (the tag <Coordinate>
is self closed and should not). In the bad example, the tag is not self closed.
Can someone please explain me why it seems to have two rendering mode?
Thanks!
Ok I figured out what was the problem. When there is a syntax error in my html file, the <Normal vector" ...">
isn't used and in my case without this vector the rendering appears better. I now have to figure why!
edit:
The normal vector was "wrong" (at least for x3dom). Generating a correct normal vector along with the object did the trick. So it seems it's better to have no normal than a "bad" normal.