Dear All,

There are 4 cameras in my MFC SDI application. 
One for main view and another for three additional
windows.

I use osgProducer::Viewer.

and Producer::CameraConfig for cameras.

I need to specify clip planes for one camera.

As per information from osg-forums I tried like
following......

osgProducer::OsgSceneHandler* pSceneHandler = 
        dynamic_cast<osgProducer::OsgSceneHandler*>
(m_pProducerCamera->getSceneHandler()); 
if (pSceneHandler == NULL)
{
        LEAVE_CODE_BLOCK;
}

//m_pProducerCamera->setShareLens(false);
//m_pProducerCamera->setShareView(false);

// Get scene view
osgUtil::SceneView* pSceneView =
pSceneHandler->getSceneView();
if (pSceneView == NULL)
{
        LEAVE_CODE_BLOCK;
}

pSceneView->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR);


Unfortunately it did not work.

Please give some tips.

With Thanks & Regards,

Manoj

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to