ümit uzun wrote on Tuesday 06 May 2008:
> Hi Robert,
>
> Firstly you are welcome to mail list :) I have an
> question about culling problem. I have an aircraft and
> earth model. Their size is "aircraft = 0e-07 " and "earth
> = 2e+07". When I add the aircraft node to the
> coordinateSystemNode which all nodes tied to it, aircraft
> get invisible. I think automatic culling system is
> culling the aircraft  from the scene. I have try to add ;
>
> viewer.getCamera()->setComputeNearFarMode(
> osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR );
> std::cout<<"NearFarMode  :
> "<getComputeNearFarMode()<getCullingMode(); cullingMode
> &= ~ ( osg::CullStack::SMALL_FEATURE_CULLING  );
> viewer.getCamera()->setCullingMode( cullingMode );

I think this has something to do with "fustrum". I use this 
code:

    double fovy=45.;
    double aspectRatio=1.32773;
    double zNear=0.2;
    double zFar=50000.;
    osg::Matrixd CameraPerspective;
    CameraPerspective.makePerspective( fovy, aspectRatio, 
zNear, zFar);
    viewer.getCamera() -> setProjectionMatrix( 
CameraPerspective );
    viewer.getCamera() -> setComputeNearFarMode( 
osgUtil::CullVisitor::DO_NOT_COMPUTE_NEAR_FAR );

bye

Zoltán


>
> then result is same. Why my little aircraft culling from
> scene? How can I fix this problem?
>
> Thanks so much...
>
>
>
> ÜMÝT UZUN
>
> _________________________________________________________
>________ Gelen kutunuzda hiç yer kalmamasýndan býktýnýz
> mý? Windows Live Hotmail þimdi size 5GB ÜCRETSÝZ depolama
> alaný sunuyor! Ücretsiz Windows Live Hotmail hesabýnýzý
> buradan alýn! http://get.live.com/mail/overview
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-op
>enscenegraph.org



-- 
 
____________________________________

Zoltan

http://sourceforge.net/projects/zsim
____________________________________

 
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to