Re: [osg-users] checking StateAttribute::OVERRIDE

2009-08-26 Thread Helbig, Yuen
: Monday, August 24, 2009 4:44 PM To: OpenSceneGraph Users Subject: Re: [osg-users] checking StateAttribute::OVERRIDE Helbig, Yuen wrote on Monday, August 24, 2009 5:37 PM: Does anyone know how to check if the StateAttribute::OVERRIDE flag is set on a StateSet? Yuen Helbig Perhaps something

[osg-users] checking StateAttribute::OVERRIDE

2009-08-24 Thread Helbig, Yuen
Does anyone know how to check if the StateAttribute::OVERRIDE flag is set on a StateSet? Yuen Helbig ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] checking StateAttribute::OVERRIDE

2009-08-24 Thread Helbig, Yuen
] checking StateAttribute::OVERRIDE Helbig, Yuen wrote on Monday, August 24, 2009 5:37 PM: Does anyone know how to check if the StateAttribute::OVERRIDE flag is set on a StateSet? Yuen Helbig Perhaps something like the following: osg::StateAttribute::Type ssType = osg::StateAttribute

[osg-users] Converting model to screen coordinates

2008-07-02 Thread Helbig, Yuen
Hello, I'm trying to convert from model coordinates to screen coordinates with the following code: // Compute the model to screen transformation matrix osgUtil::SceneView* sv = m_sHandler-getSceneView(); osg::Matrix modelView = sv-getViewMatrix(); osg::Matrix projection =

Re: [osg-users] How to get the list of triangles of a loaded model ?

2008-04-30 Thread Helbig, Yuen
You need to create a derived class from NodeVisitor, and process each Geode you encounter. Something like: class GeomInspector : public osg::NodeVisitor { ... Constructors, transformMatrix, Array of triangles found, etc... ... // Member Functions / // If visiting a geode,

Re: [osg-users] How do I get an array of vertices and an array ofindices from an osg::Geometry object?

2008-04-30 Thread Helbig, Yuen
El Miércoles 30 Abril 2008ES 00:58:30 Helbig, Yuen escribió: Hello, I'm trying to extract an array of vertices and indices from an osg::Geometry object for  collision detection purposes, my initial code looks like:   osg::Geometry* tempGeometry = tempGeode.geode-getDrawable(j

[osg-users] How do I get an array of vertices and an array of indices from an osg::Geometry object?

2008-04-29 Thread Helbig, Yuen
Hello, I'm trying to extract an array of vertices and indices from an osg::Geometry object for collision detection purposes, my initial code looks like: osg::Geometry* tempGeometry = tempGeode.geode-getDrawable(j)-asGeometry(); float* tempVertexArrayPtr =

[osg-users] OSG 1.2 Fitting a 3D view to the screen

2008-04-25 Thread Helbig, Yuen
Hello, I'm using OpenScene Graph version 1.2 (no choice in the matter) and I'm trying to fit a 3D view to the screen. Anyone have any suggestion on how to do this? Yuen ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] OSG 1.2 Fitting a 3D view to the screen

2008-04-25 Thread Helbig, Yuen
Tomlinson Email : [EMAIL PROTECTED] YIM/AIM : gordon3dBrit MSN IM : [EMAIL PROTECTED] Website : www.vis-sim.com www.gordontomlinson.com __ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Helbig, Yuen Sent: Friday