-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Hui,
hui wrote: | | Hi | | I use osgShadow example and add a replicantbody avatar into the | scene, but I cannot see any shadow from it? Does anybody know what is | the tricky thing for casting shadow on replicantbody? The problem is that Replicant is using its own rendering code to draw the skinned meshes from Cal3D. Therefore, the osgShadow code doesn't "know" anything about them and the OpenGL state is not correctly preserved. You would need to replace/fix the code in their OSG backend implementation or replace that backend wholesale - perhaps a good idea anyway, because it has known performance issues. If you need characters, try the osgCal code - it used to be usable for casting shadows, because it was using the standard OSG facilities for drawing and managed the OpenGL state correctly. However, I didn't try shadows with it recently and a lot has changed in the rendering implementation (hardware skinning was added, for example), so you would have to test it. It is at least actively maintained, Replicant is not really if I recall correctly. Regards, Jan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org iD8DBQFI7Rv+n11XseNj94gRArf0AJ9Q+j+3pY5qnHkE4SWbziGd4sQflgCfUhEf RH9nlPj7WqsS9+vygpML4Ws= =FZPx -----END PGP SIGNATURE----- _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

