[osg-users] Geometry vertices and nan/inf

2015-03-14 Thread Erik Hensens
Hello all, I'm analyzing the vertices of a geometry like so: Code: osg::Array *pVertexArray = pGeometry->getVertexArray(); int nVertices = (int)(pVertexArray->getNumElements()); osg::Vec3 *pVertexData = (osg::Vec3 *)(pVertexArray->getDataPointer()); for (int i = 0; i < nVertices; i++) { float f

Re: [osg-users] How to mix ViewDependentShadowMap with any other shader?

2015-03-14 Thread Guo Zhao
Hi, I have met the same problem recently. Have you solved this problem? ... Thank you! Cheers, Guo -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=63090#63090 ___ osg-users mailing list osg-users@

Re: [osg-users] Geometry vertices and nan/inf

2015-03-14 Thread Robert Osfield
Hi Erik, Your code is rather perverse and potentially unsafe way to get at the xyz coords, but if the array is a Vec3Array then it should probably work OK. A better way to look at to coords is to cast the array to a Vec3Array and access the vertices via the std::vector<> methods (Vec3Array subcla

[osg-users] osgboostpython has moved

2015-03-14 Thread Jean-Sébastien Guay
Hello, Even though I have been inactive in the past 3 years, I wanted to inform anyone who might be interested. Since Google Code is closing down in less than a year (http://google-opensource.blogspot.ca/2015/03/farewell-to-google-code.html), I went ahead and moved my old pet project osgboost

[osg-users] osgOculusViewer and osg::Text

2015-03-14 Thread João
I'm currently using osgOculusViewer in conjunction with osg::Text to try and create a GUI. Thing is, the text isn't being displayed as I'd expect. The text appears to be mirrored. ___ osg-users m

[osg-users] Multiple node and multiple transform

2015-03-14 Thread Numan Kendir
Hi, I am new to OpenSceneGraph, I want to load multiple nodes and transform to their coordinates. My code looks like; Code: osg::Node* myNodes[10]; osg::PositionAttitudeTransform * myXForm =new osg::PositionAttitudeTransform(); for (row=0; row<10; row++) { myNodes[row] = osgDB::readNodeFile("m

Re: [osg-users] osgboostpython has moved

2015-03-14 Thread Chris Hanson
Paul has been moving his projects to Google Code today. I think the GoogleCode osgephemeris was the official one now, per Don. Jeremy wasn't feeling well this weekend, but I expect he'll be moving his projects. If anyone needs help re-hosting, just shout. It's pretty straightforward. On Sat, Mar