Build fixes to cope with changes to Producer/osgProducer.

This commit is contained in:
Robert Osfield 2006-03-30 10:20:11 +00:00
parent a5d12c598a
commit 1c2deb253a
6 changed files with 10 additions and 7 deletions

View File

@ -1425,9 +1425,9 @@ int main( int argc, char **argv )
// now the windows have been realized we switch off the cursor to prevent it
// distracting the people seeing the stereo images.
float fovy = 1.0f;
for( unsigned int i = 0; i < viewer.getCameraConfig()->getNumberOfCameras(); i++ )
for( unsigned int i = 0; i < viewer.getNumberOfCameras(); i++ )
{
Producer::Camera* cam = viewer.getCameraConfig()->getCamera(i);
Producer::Camera* cam = viewer.getCamera(i);
Producer::RenderSurface* rs = cam->getRenderSurface();
rs->useCursor(false);
fovy = osg::DegreesToRadians(cam->getLensVerticalFov());

View File

@ -510,7 +510,7 @@ int main( int argc, char **argv )
{
// take camera zero as the guide.
osg::Matrix modelview(viewer.getCameraConfig()->getCamera(0)->getViewMatrix());
osg::Matrix modelview(viewer.getCamera(0)->getViewMatrix());
cp->setPacket(modelview,viewer.getFrameStamp());

View File

@ -19,6 +19,7 @@
#include <osgUtil/SmoothingVisitor>
#include <Producer/CameraConfig>
class PBufferTexture2D : public osg::Texture2D
{

View File

@ -744,9 +744,9 @@ int main( int argc, char **argv )
// distracting the people seeing the stereo images.
float fovx = 1.25f;
float fovy = 1.0f;
for( unsigned int i = 0; i < viewer.getCameraConfig()->getNumberOfCameras(); i++ )
for( unsigned int i = 0; i < viewer.getNumberOfCameras(); i++ )
{
Producer::Camera* cam = viewer.getCameraConfig()->getCamera(i);
Producer::Camera* cam = viewer.getCamera(i);
//Producer::RenderSurface* rs = cam->getRenderSurface();
//rs->useCursor(false);
fovx = cam->getLensHorizontalFov();

View File

@ -475,9 +475,9 @@ int main( int argc, char **argv )
// now the windows have been realized we switch off the cursor to prevent it
// distracting the people seeing the stereo images.
float fovy = 1.0f;
for( unsigned int i = 0; i < viewer.getCameraConfig()->getNumberOfCameras(); i++ )
for( unsigned int i = 0; i < viewer.getNumberOfCameras(); i++ )
{
Producer::Camera* cam = viewer.getCameraConfig()->getCamera(i);
Producer::Camera* cam = viewer.getCamera(i);
Producer::RenderSurface* rs = cam->getRenderSurface();
rs->useCursor(false);
fovy = osg::DegreesToRadians(cam->getLensVerticalFov());

View File

@ -13,6 +13,8 @@
#include <osgUtil/Optimizer>
#include <osgProducer/Viewer>
#include <Producer/CameraConfig>
static Producer::CameraConfig *BuildConfig(void)
{
#define TWO_SEPERATE_WINDOWS