Show
Ignore:
Timestamp:
03/18/08 16:37:38 (10 years ago)
Author:
robert
Message:

To osg::AutoTransform? added support for MinimumScale?, MaximumScale? and AutoScaleTransitionWidth? parameters
and a new scheme for computing the scaling when using autoscale that introduces smooth
transitions to the scaling of the subgraph so that it looks more natural.

Files:
1 modified

Legend:

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

    r7967 r7968  
    2929#include <osg/Geometry> 
    3030 
     31#include <osgDB/WriteFile> 
     32 
    3133#include <osgText/Text> 
    3234 
     
    113115        geom->setVertexArray(vertices); 
    114116        geom->setColorArray(colors); 
     117        geom->setColorBinding(osg::Geometry::BIND_OVERALL); 
    115118        geom->addPrimitiveSet(new osg::DrawArrays(GL_LINE_STRIP,0,vertices->size())); 
    116119 
     
    139142        geom->setVertexArray(vertices); 
    140143        geom->setColorArray(colors); 
     144        geom->setColorBinding(osg::Geometry::BIND_OVERALL); 
    141145        geom->addPrimitiveSet(new osg::DrawArrays(GL_LINE_STRIP,0,vertices->size())); 
    142146