Hi Tim, The OSG tracks OpenGL state via the osg::State object, there is one osg::State managed per graphics context. The osg::State tracks which StateAttributes are applied, and when a new one comes alone it clones a default constructed version of that StateAttribute and later uses this to apply the default state for that attribute for when the orignal attribute goes out of scope. In the case of TexMat, a default one should be the identity matrix.
Robert. On 4/5/07, Tim Moore <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I'm looking at a bug in the FlightGear flight simulator in which all the textures on the ground and aircraft start sliding around. It seems to be related to the use of TexMat in some animations in the aircraft models. In looking at the code for TexMat, I don't see anything that would restore the texture matrix to identity for states that don't use the texture matrix at all. So, 1) am I confused, 2) is this a bug or 3) is the proper use of TexMat to attach a StateSet with an identity texture matrix at the root of the scene graph? Thanks, Tim - -- Red Hat France SARL, 171 Avenue Georges Clemenceau 92024 Nanterre Cedex, France. Siret n° 421 199 464 00056 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFGFU3LeDhWHdXrDRURArASAJ4wBS0sdOI6nTDv6UF2r0Lf1Vr76ACfXoAg qTrC9ys8PkB9RAEmnGhqWYc= =oJu4 -----END PGP SIGNATURE----- _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
