Show
Ignore:
Timestamp:
07/22/08 17:58:40 (6 years ago)
Author:
robert
Message:

Improved position when multiple videos are provided

Files:
1 modified

Legend:

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

    r8073 r8659  
    429429            if (image) 
    430430            { 
     431                osg::notify(osg::NOTICE)<<"image->s()"<<image->s()<<" image-t()="<<image->t()<<std::endl; 
     432             
    431433                geode->addDrawable(myCreateTexturedQuadGeometry(pos,image->s(),image->t(),image, useTextureRectangle, xyPlane, flip)); 
    432434         
    433435                bottomright = pos + osg::Vec3(static_cast<float>(image->s()),static_cast<float>(image->t()),0.0f); 
    434436 
    435                 pos.y() += image->t()*1.5f; 
     437                if (xyPlane) pos.y() += image->t()*1.05f; 
     438                else pos.z() += image->t()*1.05f; 
    436439            } 
    437440            else