From c41d027e6b7f1a78d8486287d9b82f61482cefb7 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 9 Dec 2005 19:54:31 +0000 Subject: [PATCH] Fixed the text to match the implementation. --- examples/osghud/osghud.cpp | 60 +++++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 24 deletions(-) diff --git a/examples/osghud/osghud.cpp b/examples/osghud/osghud.cpp index d80ed9a48..c10f37698 100644 --- a/examples/osghud/osghud.cpp +++ b/examples/osghud/osghud.cpp @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include @@ -70,33 +69,46 @@ osg::Node* createHUD() text->setFont(timesFont); text->setPosition(position); - text->setText("Disable depth test in this subgraph to ensure its always ontop."); - - position += delta; - } - - { - osgText::Text* text = new osgText::Text; - geode->addDrawable( text ); - - text->setFont(timesFont); - text->setPosition(position); - text->setText("Then place an osg::Projection node above the subgraph\nto create an orthographic projection."); - - position += delta; - } - - { - osgText::Text* text = new osgText::Text; - geode->addDrawable( text ); - - text->setFont(timesFont); - text->setPosition(position); - text->setText("And add an osg::ModelViewMatrix set to ABSOLUTE_RF to ensure\nit remains independent from any external model view matrices."); + text->setText("Then place an osg::CameraNode above the subgraph\n" + "to create an orthographic projection.\n"); position += delta; } + { + osgText::Text* text = new osgText::Text; + geode->addDrawable( text ); + + text->setFont(timesFont); + text->setPosition(position); + text->setText("Set the CameraNode's ReferenceFrame to ABSOLUTE_RF to ensure\n" + "it remains independent from any external model view matrices."); + + position += delta; + } + + { + osgText::Text* text = new osgText::Text; + geode->addDrawable( text ); + + text->setFont(timesFont); + text->setPosition(position); + text->setText("And set the CameraNode's clear mask to just clear the depth buffer."); + + position += delta; + } + + { + osgText::Text* text = new osgText::Text; + geode->addDrawable( text ); + + text->setFont(timesFont); + text->setPosition(position); + text->setText("And finally set the CameraNode's RenderOrder to POST_RENDER\n" + "to make sure its drawn last."); + + position += delta; + } {