Hello everyone,
I've just started using OpenSG (1.8) and I've got a little problem on my hand.
I've tried drawing a Torus. It works in 2 different ways, but doesn't work in
the third way (using corednodes). Here is a sample of my program:
----------------------------------------------------------------
//first in create geometry, a simple torus
GeometryPtr pGeometry = makeTorusGeo(50.1, 100.2, 8, 16);
//then i want to create a node from this geometry. Following code works:
OSG::NodePtr pGeometryNode = OSG::Node::create();
OSG::beginEditCP(pGeometryNode);
pGeometryNode->setCore(pGeometry);
OSG::endEditCP(pGeometryNode);
//this code works too:
NodePtr pGeometryNode = makeNodeFor(pGeometry);
//BUT, this code doesn't seem to work ? Why ?
NodePtr pGeometryNode = makeCoredNode<Geometry>(&pGeometry);
----------------------------------------------------------------
It compiles but nothing is drawn.
greetings,
Mikael V.
--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen:
http://www.gmx.net/de/go/multimessenger
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users