Build fixes to cope with changes to Producer/osgProducer.
This commit is contained in:
parent
a5d12c598a
commit
1c2deb253a
@ -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());
|
||||
|
@ -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());
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
#include <osgUtil/SmoothingVisitor>
|
||||
|
||||
#include <Producer/CameraConfig>
|
||||
|
||||
class PBufferTexture2D : public osg::Texture2D
|
||||
{
|
||||
|
@ -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();
|
||||
|
@ -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());
|
||||
|
@ -13,6 +13,8 @@
|
||||
#include <osgUtil/Optimizer>
|
||||
#include <osgProducer/Viewer>
|
||||
|
||||
#include <Producer/CameraConfig>
|
||||
|
||||
static Producer::CameraConfig *BuildConfig(void)
|
||||
{
|
||||
#define TWO_SEPERATE_WINDOWS
|
||||
|
Loading…
Reference in New Issue
Block a user