Changed colour of anisotropic text in osgtexture2D example.

Removed the save test.osg call in osgkeyboard.
This commit is contained in:
Robert Osfield 2003-04-02 11:57:23 +00:00
parent 7aab621405
commit fea6ad3101
2 changed files with 2 additions and 2 deletions

View File

@ -421,8 +421,7 @@ int main( int argc, char **argv )
// attach the scene graph.
viewer.setSceneData( keyboardModel->getScene() );
osgDB::writeNodeFile(*keyboardModel->getScene(),"test.osg");
//osgDB::writeNodeFile(*keyboardModel->getScene(),"test.osg");
// create the windows and run the threads.
viewer.realize(Producer::CameraGroup::ThreadPerCamera);

View File

@ -312,6 +312,7 @@ osg::Node* createAnisotripicWall(osg::BoundingBox& bb,const std::string& filenam
text->setFont("fonts/arial.ttf");
text->setPosition(center);
text->setCharacterSize(height*0.03f);
text->setColor(osg::Vec4(1.0f,0.0f,1.0f,1.0f));
text->setAlignment(osgText::Text::CENTER_CENTER);
text->setAxisAlignment(osgText::Text::XY_PLANE);