Re: [osg-users] osggeometryshaders example question

2017-09-13 Thread Mike Greene
Thanks! Cheers, Mike -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=71703#71703 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-

Re: [osg-users] osggeometryshaders example question

2017-09-12 Thread tianzjyh
Hi, Beside setting node's bound with setInitialBound(), you can call node's setCullActive() with parameter "false" to disable the culling behavior by node's size, especially for geometry with only one point. -- Cheers, TianZJ At 2017-09-12 23:12:45, "Mike Greene" wrote: >Hi, > >In re

Re: [osg-users] osggeometryshaders example question

2017-09-12 Thread Robert Osfield
Hi Mike, I have just done a quick experiement with the osgshadersexample and found the with one vertex I wouldn't see anything. With only a single vertex the bounding box would just be zero sized so the scaling of the camera would likely be a bit off as well as small feature culling wanting to cu

[osg-users] osggeometryshaders example question

2017-09-12 Thread Mike Greene
Hi, In reference to the osggeometryshaders example, I have a question about a seeming problem when only passing one point to the geometry shader: If I comment out all but the first push back: Code: osg::Vec3Array* vAry = new osg::Vec3Array; setVertexArray( vAry ); vAry->push_back( osg::Vec3(0,