[osg-users] How to implemente this simple function?

wangmiao wangmiao at ict.ac.cn
Sun Sep 9 09:02:37 PDT 2007

May be you need to disable autoComputeNearFar for a camera.
Don't apologize for your poor en , cause they may also poor in CH....hehe
  ----- Original Message ----- 
  From: 方之 
  To: osg-users at lists.openscenegraph.org 
  Sent: Sunday, September 09, 2007 11:57 PM
  Subject: [osg-users] How to implemente this simple function?

  Hello all :
    I want to implemente this function, only to render the fixed distance  from the viewer current position, and I can't use the getProjectionMatrixAsFrustum function correct:

  I use the following codes, but the result is very strange:

  viewer ->getCamera() ->setProjectionMatrixAsFrustum(-10,10,-10,10,100,200) ;

  I want the viewer only to render the distance between 100 and 200 from the viewer current position.

  I will gratitude for giving me some Tutorials 
  ......... Sorry for my poor EN.



  osg-users mailing list
  osg-users at lists.openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070910/8c75ded0/attachment-0003.htm>

More information about the osg-users mailing list