Hi Dirk, > > I have a 3ds file with some geometries being partially > > transparent, I convert the file using vred to osb. > > The resulting osb file looks perfect within vred > > but depth sorting seems to get broken when I load > > the same file in my own program (using the osg > > file standard file loader). Any ideas what > > could go wrong? > > I'm not sure what Vred's default settings for transSort and ZWriteTrans > are, that might explain the difference. Andreas, what are those?
What's transSort and ZWriteTrans ? > > I have a suspicion: I use > > a MatrixCamera and the SimpleSceneManager, > > I know that picking gets broken because the > > SimpleSceneManager doesn't know anything about > > my actual camera. Could it be that depth sorting > > is performed using the settings of the camera > > included in the SimpleSceneManager, and therefore > > my sorting gets screwed? > > Hm, unless you put the camera transformation in the projection matrix it > should work just fine. Is your viewing matrix the identity? That would > explain it. My Projection Matrix is a perspective standard matrix. My viewing Matrix is something like this: osg::MatrixLookAt( modelViewMatrix, 0, 0, 0, 0, 0, 1, 0, -1, 0 ); Almost identity. But that shouldn't have any impact on the depth sorting?! Well I noticed that the lighting gets also influenced by the SimpleSceneManager camera instead of the actual camera. BTW, I tried to inherit the SimpleSceneManager to put my camera in it but the camera is a perspective camera and thus can't be overwritten with a MatrixCamera :( Cheers, Toni ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
