From Wojciech Lewandowski, "ref_ptr usage changes made on 9th of June broke VirtualProgram used in osgShaderCompositor example. Taking the opportunity I modified the code a little to use earth sphere as default model. Cow.osg used previously was not looking good in advanced example. I also changed default to advanced example, because its more informative with labels describing virtual programs used to render the objects."

This commit is contained in:
Robert Osfield
2009-10-10 09:53:10 +00:00
parent 590aabb4fa
commit ae440bfaef
4 changed files with 72 additions and 82 deletions

View File

@@ -11,12 +11,10 @@
using osgCandidate::VirtualProgram;
////////////////////////////////////////////////////////////////////////////////
osg::Node * CreateSimpleHierarchy( const char * file )
osg::Node * CreateSimpleHierarchy( osg::Node * node )
{
osg::Node * node = osgDB::readNodeFile( file );
if( !node ) return NULL;
float r = node->getBound().radius(); // diameter
osg::Group * root = new osg::Group();
osg::Group * group = new osg::Group();