From 9ce276c5d7ddb8be5d7bb28a12f8e23e3e6494de Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 13 Mar 2008 13:43:22 +0000 Subject: [PATCH] From Alberto Luaces, "Here I send minor corrections to the text output by the osgforest example when building its graphs. The message "Creating billboard based forest" appears four times regardless of the actual type of the graph being built. " --- examples/osgforest/osgforest.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/osgforest/osgforest.cpp b/examples/osgforest/osgforest.cpp index 4f181eb85..093e5904b 100644 --- a/examples/osgforest/osgforest.cpp +++ b/examples/osgforest/osgforest.cpp @@ -981,7 +981,7 @@ osg::Node* ForestTechniqueManager::createScene(unsigned int numTreesToCreates) _techniqueSwitch = new osg::Switch; { - std::cout<<"Creating billboard based forest..."; + std::cout<<"Creating osg::Billboard based forest..."; osg::Group* group = new osg::Group; group->addChild(createBillboardGraph(cell.get(),dstate)); group->addChild(createHUDWithText("Using osg::Billboard's to create a forest\n\nPress left cursor key to select OpenGL shader based forest\nPress right cursor key to select double quad based forest")); @@ -990,7 +990,7 @@ osg::Node* ForestTechniqueManager::createScene(unsigned int numTreesToCreates) } { - std::cout<<"Creating billboard based forest..."; + std::cout<<"Creating double quad based forest..."; osg::Group* group = new osg::Group; group->addChild(createXGraph(cell.get(),dstate)); group->addChild(createHUDWithText("Using double quads to create a forest\n\nPress left cursor key to select osg::Billboard based forest\nPress right cursor key to select osg::MatrixTransform based forest\n")); @@ -999,10 +999,10 @@ osg::Node* ForestTechniqueManager::createScene(unsigned int numTreesToCreates) } { - std::cout<<"Creating billboard based forest..."; + std::cout<<"Creating osg::MatrixTransform based forest..."; osg::Group* group = new osg::Group; group->addChild(createTransformGraph(cell.get(),dstate)); - group->addChild(createHUDWithText("Using osg::MatrixTransform's to create a forest\n\nPress left cursor key to select double quad based forest\nPress right cursor key to select OpenGL shder based forest")); + group->addChild(createHUDWithText("Using osg::MatrixTransform's to create a forest\n\nPress left cursor key to select double quad based forest\nPress right cursor key to select OpenGL shader based forest")); _techniqueSwitch->addChild(group); std::cout<<"done."<addUniform(baseTextureSampler); } - std::cout<<"Creating billboard based forest..."; + std::cout<<"Creating OpenGL shader based forest..."; group->addChild(createShaderGraph(cell.get(),stateset)); group->addChild(createHUDWithText("Using OpenGL Shader to create a forest\n\nPress left cursor key to select osg::MatrixTransform based forest\nPress right cursor key to select osg::Billboard based forest")); _techniqueSwitch->addChild(group);