Init
auto scene = new osg::Group;
auto swtch = new osg::Switch;
auto scribe = new osgFX::Scribe;
auto node = osgDB::readNodeFile(..);
scene->addChild(swtch);
swtch->addChild(node);
swtch->addChild(scribe);
scribe->addChild(node);
swtch->setSingleChildOn(0);
CameraNode has a mask (only main camera traverses the CameraNode)
Both cameras render the polygon with the prerenderred (by frame buffer
object) texture.
===
Igor Naigovzin
Technion - CS and Biology Student
Rafael - Software Developer
email: [EMAIL PROTECTED
2 matches
Mail list logo