Hi all,
My top level Scene node is a ShadowScene.
At some deeper level I want to include some scene part which is based on
OpneGL coordinates. To have it display the right way I have to switch Y and Z
coordinates. So I put a MatrixTransform between like this:
osgScene = new osg::MatrixTransform;
/*
osgScene->setMatrix(osg::Matrix(1.0, 0.0, 0.0, 0.0,
0.0, 0.0, 1.0, 0.0,
0.0, 1.0, 0.0, 0.0,
0.0, 0.0, 0.0, 1.0));
*/
osgScene->addChild(scene.get());
setUserScene(osgScene.get());
As you can see the matrix setting is commented out and everything works quite
fine, except the models orientation is wrong.
After removing the comments the orientation is as expected but the whole scene
is in shadow.
Thanks for any hints on this?
- Werner -
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org