[osg-users] VRML Normal Issue

Jan Ciger jan.ciger at gmail.com
Sat Mar 21 09:23:04 PDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Ben,

Ben Axelrod wrote:
> I have noticed a very strange issue regarding VRML file rendering.  This
> issue happens in OSG viewer version 2.6, with openVRML version 0.14.3.  
> 
...
> Are there some VRML flags to prevent this behavior?  Is this a bug in
> the VRML parser?  If so, is this part of OSG or openVRML?

I happen to be one of the authors of the VRML plugin. I had a look at
your files and badbox.wrl is incorrect. You need to explicitly specify
the vertex normals, otherwise it will assume normal per face and if even
those are not provided, calculate them from the vertices - leading to
the behavior you are describing. The behavior is correct, IMO - the
parser has no means to know what you want if you do not specify the normals.

Regards,

Jan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFJxRRkn11XseNj94gRAsiVAKCNve8MXKvwkJ75hLM6kZcn1gZzfwCdH+Pr
A8CF98dTVjegSqXWeKQdNm4=
=NbCl
-----END PGP SIGNATURE-----



More information about the osg-users mailing list