Revision: 428
Updated Code
at November 7, 2006 03:28 by buscarini
Updated Code
double left,right,top,bottom,nearClip,farClip,xshear,yshear; float hfov,vfov; osgProducer::OsgSceneHandler *sceneHandler = viewer.getSceneHandlerList()[0].get(); osgUtil::SceneView *sceneView = sceneHandler->getSceneView(); sceneView->setComputeNearFarMode(osgUtil::CullVisitor::DO_NOT_COMPUTE_NEAR_FAR); Producer::Camera *cam = viewer.getCamera(0); cam->getLensParams(left,right,top,bottom,nearClip,farClip,xshear,yshear); hfov = cam->getLensHorizontalFov(); vfov = cam->getLensVerticalFov(); cam->setLensPerspective(hfov,vfov,0.1,500,xshear,yshear);
Revision: 427
Updated Code
at July 13, 2006 02:07 by buscarini
Updated Code
double left,right,top,bottom,nearClip,farClip,xshear,yshear; float hfov,vfov; osgProducer::OsgSceneHandler *sceneHandler = viewer->getSceneHandlerList()[1].get(); osgUtil::SceneView *sceneView = sceneHandler->getSceneView(); sceneView->setComputeNearFarMode(osgUtil::CullVisitor::DO_NOT_COMPUTE_NEAR_FAR); Producer::Camera *cam = viewer->getCamera(0); cam->getLensParams(left,right,top,bottom,nearClip,farClip,xshear,yshear); hfov = cam->getLensHorizontalFov(); vfov = cam->getLensVerticalFov(); cam->setLensPerspective(hfov,vfov,0.1,500,xshear,yshear);
Revision: 426
Updated Code
at July 13, 2006 02:04 by buscarini
Updated Code
osgProducer::OsgSceneHandler *sceneHandler = viewer->getSceneHandlerList()[1].get(); osgUtil::SceneView *sceneView = sceneHandler->getSceneView(); sceneView->setComputeNearFarMode(osgUtil::CullVisitor::DO_NOT_COMPUTE_NEAR_FAR); Producer::Camera *cam = viewer->getCamera(0); cam->setLensPerspective(hfov,vfov, 0.1,500,xshear,yshear);
Revision: 425
Updated Code
at July 13, 2006 02:03 by buscarini
Updated Code
osgProducer::OsgSceneHandler *sceneHandler = viewer->getSceneHandlerList()[1].get(); osgUtil::SceneView *sceneView = sceneHandler->getSceneView(); sceneView->setComputeNearFarMode(osgUtil::CullVisitor::DO_NOT_COMPUTE_NEAR_FAR); cam->setLensPerspective(hfov,vfov, 0.1,500,xshear,yshear);
Revision: 424
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 13, 2006 01:55 by buscarini
Initial Code
sceneHandler = viewer->getSceneHandlerList()[1].get(); sceneView = sceneHandler->getSceneView(); sceneView->setComputeNearFarMode(osgUtil::CullVisitor::DO_NOT_COMPUTE_NEAR_FAR); cam->setLensPerspective(hfov,vfov, 0.1,500,xshear,yshear);
Initial URL
Initial Description
Initial Title
Ajustar el near/far en osg
Initial Tags
Initial Language
C++