Show
Ignore:
Timestamp:
09/20/06 15:40:58 (8 years ago)
Author:
robert
Message:

Added use of ClusterCullingCallback?

Files:
1 modified

Legend:

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

    r5579 r5580  
    88#include <osg/MatrixTransform> 
    99#include <osg/CoordinateSystemNode> 
     10#include <osg/ClusterCullingCallback> 
    1011 
    1112#include <osgDB/FileUtils> 
     
    9798    ellipsoid->convertLatLongHeightToXYZ( osg::DegreesToRadians(latitude), osg::DegreesToRadians(longitude), height, X, Y, Z); 
    9899 
    99     osgText::FadeText* text = new osgText::FadeText; 
     100 
     101    osgText::Text* text = new osgText::FadeText; 
     102 
     103    osg::Vec3 normal = ellipsoid->computeLocalUpVector( X, Y, Z); 
     104    text->setCullCallback(new osg::ClusterCullingCallback(osg::Vec3(X,Y,Z), normal, 0.0)); 
    100105 
    101106    text->setText(str);