Hi,

    Trying to fix the broken hi res screenshot, and I've found out that
in src/Main/renderer.cxx FGRenderer::update() line 498, calling
FGRenderer::setNearFar, which calls ssgSetFOV, seems to somehow cause
the ssgSetFrustum call in the simgear's tile renderer trBeginTile() to
not work.


    The hi res screenshot calls FGRenderer::update(false), so i tried
putting the setNearFar calls around a check on refresh_camera_settings,
and it seems to fix the bug. However I cannot say I know why, as I'm not
familiar with this area. Anywho I've attached the patch of this.


    I'm hoping this might give a clue to someone who actually understand
the renderer and maybe come up with a proper fix.


    Thanks.


Pigeon.

--- src/Main/renderer.cxx       2006-09-08 21:54:59.000000000 +1000
+++ src/Main/renderer.cxx.pigeon        2006-09-08 21:54:28.000000000 +1000
@@ -495,7 +495,9 @@
         scene_farplane = 120000.0f;
     }
 
-    setNearFar( scene_nearplane, scene_farplane );
+    if ( refresh_camera_settings ) {
+        setNearFar( scene_nearplane, scene_farplane );
+    }
 
     sgEnviro.startOfFrame(current__view->get_view_pos(), 
         current__view->get_world_up(),
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to