Show
Ignore:
Timestamp:
12/09/05 20:54:31 (8 years ago)
Author:
robert
Message:

Fixed the text to match the implementation.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osghud/osghud.cpp

    r4386 r4918  
    2020#include <osg/BlendFunc> 
    2121#include <osg/Depth> 
    22 #include <osg/Projection> 
    2322#include <osg/PolygonOffset> 
    2423#include <osg/MatrixTransform> 
     
    7170        text->setFont(timesFont); 
    7271        text->setPosition(position); 
    73         text->setText("Disable depth test in this subgraph to ensure its always ontop."); 
    74          
    75         position += delta; 
    76     }     
    77  
    78     { 
    79         osgText::Text* text = new  osgText::Text; 
    80         geode->addDrawable( text ); 
    81  
    82         text->setFont(timesFont); 
    83         text->setPosition(position); 
    84         text->setText("Then place an osg::Projection node above the subgraph\nto create an orthographic projection."); 
    85          
    86         position += delta; 
    87     }     
    88  
    89     { 
    90         osgText::Text* text = new  osgText::Text; 
    91         geode->addDrawable( text ); 
    92  
    93         text->setFont(timesFont); 
    94         text->setPosition(position); 
    95         text->setText("And add an osg::ModelViewMatrix set to ABSOLUTE_RF to ensure\nit remains independent from any external model view matrices."); 
     72        text->setText("Then place an osg::CameraNode above the subgraph\n" 
     73                      "to create an orthographic projection.\n"); 
    9674         
    9775        position += delta; 
    9876    }  
    9977     
     78    { 
     79        osgText::Text* text = new  osgText::Text; 
     80        geode->addDrawable( text ); 
     81 
     82        text->setFont(timesFont); 
     83        text->setPosition(position); 
     84        text->setText("Set the CameraNode's ReferenceFrame to ABSOLUTE_RF to ensure\n" 
     85                      "it remains independent from any external model view matrices."); 
     86         
     87        position += delta; 
     88    }  
     89 
     90    { 
     91        osgText::Text* text = new  osgText::Text; 
     92        geode->addDrawable( text ); 
     93 
     94        text->setFont(timesFont); 
     95        text->setPosition(position); 
     96        text->setText("And set the CameraNode's clear mask to just clear the depth buffer."); 
     97         
     98        position += delta; 
     99    }     
     100 
     101    { 
     102        osgText::Text* text = new  osgText::Text; 
     103        geode->addDrawable( text ); 
     104 
     105        text->setFont(timesFont); 
     106        text->setPosition(position); 
     107        text->setText("And finally set the CameraNode's RenderOrder to POST_RENDER\n" 
     108                      "to make sure its drawn last."); 
     109         
     110        position += delta; 
     111    }     
    100112     
    101113