[prev in list] [next in list] [prev in thread] [next in thread] 

List:       flightgear-cvs
Subject:    [Flightgear-cvslogs] CVS: FlightGear/src/Scenery tileentry.cxx,1.10,1.11
From:       "Curtis L. Olson" <curt () seneca ! me ! umn ! edu>
Date:       2002-10-30 21:59:08
[Download RAW message or body]

Update of /var/cvs/FlightGear-0.9/FlightGear/src/Scenery
In directory seneca:/tmp/cvs-serv27644

Modified Files:
	tileentry.cxx 
Log Message:
Remove distance component from runway lifting function.  Only use the AGL
component.  This seems to work pretty well and simplifies things a fair bit.


Index: tileentry.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/Scenery/tileentry.cxx,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** tileentry.cxx	29 Oct 2002 19:44:04 -0000	1.10
--- tileentry.cxx	30 Oct 2002 21:59:05 -0000	1.11
***************
*** 821,826 ****
--- 821,829 ----
      SetOffset( p );
  
+     // visibility can change from frame to frame so we update the
+     // range selector cutoff's each time.
      terra_range->setRange( 0, SG_ZERO );
      terra_range->setRange( 1, vis + bounding_radius );
+ 
      if ( gnd_lights_range ) {
          gnd_lights_range->setRange( 0, SG_ZERO );
***************
*** 897,911 ****
          }
          
-         // sgTrans just happens to be the
-         // vector from scenery center to the center of this tile which
-         // is what we want to calculate the distance of
-         sgVec3 to;
-         sgCopyVec3( to, sgTrans );
-         double dist = sgLengthVec3( to );
- 
          if ( general.get_glDepthBits() > 16 ) {
!             sgScaleVec3( lift_vec, 0.0 + agl / 500.0 + dist / 10000 );
          } else {
!             sgScaleVec3( lift_vec, 1.0 + agl / 20.0 + dist / 5000 );
          }
  
--- 900,907 ----
          }
          
          if ( general.get_glDepthBits() > 16 ) {
!             sgScaleVec3( lift_vec, 0.0 + agl / 500.0 );
          } else {
!             sgScaleVec3( lift_vec, 1.0 + agl / 20.0 );
          }
  


_______________________________________________
Flightgear-cvslogs mailing list
Flightgear-cvslogs@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-cvslogs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic