RE: [osg-users] Problem with osg::Optimizer MERGE_GEOMETRY

2006-10-28 Thread Roger James
Hmmm…       if (lhs.getVertexIndices() && rhs.getVertexIndices())     {       base = lhs.getVertexIndices()->getNumElements();     merger.merge(lhs.getVertexIndices(),rhs.getVertexIndices());       }   Looks like Robert was already thinking of this but it fell through the

RE: [osg-users] Problem with osg::Optimizer MERGE_GEOMETRY

2006-10-28 Thread Roger James
Aha .. looks like the vertex indices are not being modified to reflect the new array.   Roger   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roger James Sent: 28 October 2006 21:36 To: 'osg users' Subject: RE: [osg-users] Problem with osg::Optimizer MERGE_GE

RE: [osg-users] Problem with osg::Optimizer MERGE_GEOMETRY

2006-10-28 Thread Roger James
Here is an even simpler test.   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Roger James Sent: 28 October 2006 21:36 To: 'osg users' Subject: RE: [osg-users] Problem with osg::Optimizer MERGE_GEOMETRY   Oops meant to say OSG_OPTIMIZER=OFF below not NONE.

Re: [osg-users] Flagging software rendering?

2006-10-28 Thread Leif Delgass
On 10/27/06, Ulrich Hertlein <[EMAIL PROTECTED]> wrote: Thom DeCarlo wrote: > That might get me part-way there. But, I was hoping for a way to warn the > end-user that his computer is running our software without hardware > acceleration. At that point, we won't have the IDE in place. Under X you

RE: [osg-users] Problem with osg::Optimizer MERGE_GEOMETRY

2006-10-28 Thread Roger James
Oops meant to say OSG_OPTIMIZER=OFF below not NONE.   Roger   in osgviewer with OSG_OPTIMIZER=NONE you will see that second one has some surfaces missing.   ___ osg-users mailing list osg-users@openscenegraph.net http://openscenegra

[osg-users] Problem with osg::Optimizer MERGE_GEOMETRY

2006-10-28 Thread Roger James
I am currently looking at a problem with osg::Optimizer. I wonder if any one can verify this problem for me.   The problem occurs when the graph being optimized contains shared state sets. If the Optimizer has the MERGE_GEOMETRY option set then the output graph is not correct and some sur

Re: [osg-users] GLUI

2006-10-28 Thread Robert Osfield
Hi Fernando, I know nothing about GLUI, but perhaps the osgmovie and osgcggui examples will give you a bit of inspiration in the way that they use an event callback to catch mouse and keyboard events. Robert. On 10/27/06, Fernando Giovanini <[EMAIL PROTECTED]> wrote: Hi all, I trying to create

Re: [osg-users] setLODScale and CameraNode

2006-10-28 Thread Robert Osfield
Hi Terry, osg::CameraNode inherits from osg::CullSettings which is where its inhertCullSettings comes from. The setInheritanceMask in CullSettings has a bit for LOD_SCALE. Robert. On 10/27/06, Terry Welsh <[EMAIL PROTECTED]> wrote: So, I'm not sure how to wire up CameraNode to do this. It ap

Re: [osg-users] Picking

2006-10-28 Thread Andreas Goebel
Antoine Rennuit schrieb: Hello all, I have just tried picking using a PickVisitor, which I believe is the dedicated way to do so. When I load an osg file (the cow.osg from the examples) I manage to have it work, but when I draw something hard coded "by hand" (e.g. several rough segments) I don't

Re: [osg-users] GLUI

2006-10-28 Thread Andreas Goebel
Fernando Giovanini schrieb: Hi, Andreas. But what method I can use to set the EventHandler in the sceneView? Because in the Viewer I do this: viewer.getEventHandlerList().push_front(new PickHandler(&viewer)); but the SceneView don't have the getEventHandlerList method. Thanks, Fernando. Hi,