Added beginnings of new TrackballManipulator

This commit is contained in:
Robert Osfield
2004-07-30 15:44:59 +00:00
parent 9097b2f23a
commit b790fa59a8
8 changed files with 955 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
#include <osg/GL>
#include <osgProducer/Viewer>
#include <osg/Transform>
#include <osg/MatrixTransform>
#include <osg/Billboard>
#include <osg/Geode>
#include <osg/Group>
@@ -59,7 +59,10 @@ osg::Node* createLightPointsDatabase()
end._position.set(500.0f,-500.0f,0.0f);
end._color.set(1.0f,1.0f,1.0f,1.0f);
osg::Transform* transform = new osg::Transform;
osg::MatrixTransform* transform = new osg::MatrixTransform;
transform->setDataVariance(osg::Object::STATIC);
transform->setMatrix(osg::Matrix::scale(0.1,0.1,0.1));
osg::Vec3 start_delta(0.0f,10.0f,0.0f);
osg::Vec3 end_delta(0.0f,10.0f,1.0f);