Hello Carsten,

I did just check the volume. It does not help. However, I have 
discovered that the sub tree of case 1 is rendered but at a completely 
wrong scene position. If I zoom out finally it got visible but distorted 
by the near plane clipping.

Here is my test code:

NodeUnrecPtr visitor = Node::create();
VisitSubTreeUnrecPtr visit_core = VisitSubTree::create();
visitor->setCore(visit_core);

NodeUnrecPtr prototype = makeNodeFor(Group::create());
prototype->addChild(visitor);
//prototype->addChild(tools::TorusModel());

NodeUnrecPtr dino = tools::DinoModel();
visit_core->setSubTreeRoot(dino);

ContainerCollectionUnrecPtr cc = ContainerCollection::create();
cc->addContainer(dino);
visitor->addAttachment(cc);

NodeUnrecPtr root = Node::create();
root->setCore(Group::create());
root->addChild(prototype);

ViewerT viewer = _pSystemData->getViewer();
(*viewer)[0]->setRoot(root);
(*viewer)[0]->showAll(Vec3f(1.f,1.f,-1.f), Vec3f(0.f,0.f,1.f));

Removing the comment from the line with the TorusModel does repair the 
scene. In that case no zooming is necessary.

It seems that the camera is not initialized correctly.

Best,
Johannes



------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to