Re: [Flightgear-devel] patch for groundcache.cxx problem
Mathias Fröhlich schrieb: Hi Tim, On Monday 06 November 2006 10:59, Tim Moore wrote: I was seeing the problem of falling through the earth in w070n40. With this patch I can run successfully starting with --airport=kpqi. That is applied. That area needs to be overhauled anyway, but until than this problem is fixed! Thanks! Greetings Mathias I want to confirm that with this patch the stuck in earth (or black window) problem has gone. All faulty airports are now working the right way. I added a little note in the wiki. Regards Georg EDDW BTW: I made some very long flights this evening/night in the northern area of Germany with different aircraft and the OSG version run very stable over longer times even crossing some areas where I have placed some more ground objects. Nice! - 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=lnkkid=120709bid=263057dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
[Flightgear-devel] patch for groundcache.cxx problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I was seeing the problem of falling through the earth in w070n40. With this patch I can run successfully starting with --airport=kpqi. Tim -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFFTwd4eDhWHdXrDRURAo8VAJ910r+Tvqmcv1TViropC6j6rrLECACdGfl5 hdX2e7yJRf61GizrxRgyOy0= =x7AJ -END PGP SIGNATURE- Index: groundcache.cxx === RCS file: /var/cvs/FlightGear-0.9/source/src/FDM/groundcache.cxx,v retrieving revision 1.18 diff -d -u -r1.18 groundcache.cxx --- groundcache.cxx 29 Oct 2006 19:30:25 - 1.18 +++ groundcache.cxx 6 Nov 2006 09:56:04 - @@ -370,17 +370,25 @@ virtual void apply(osg::Transform transform) { +if (!enterNode(transform)) + return; +bool oldBackfaceCulling = mBackfaceCulling; +bool oldSphIsec = sphIsec; +FGGroundCache::GroundProperty oldGp = mGroundProperty; /// transform the caches center to local coords osg::Matrix oldLocalToGlobal = mLocalToGlobal; transform.computeLocalToWorldMatrix(mLocalToGlobal, this); // walk the children -apply((osg::Group)transform); +traverse(transform); // Restore that one mLocalToGlobal = oldLocalToGlobal; +sphIsec = oldSphIsec; +mBackfaceCulling = oldBackfaceCulling; +mGroundProperty = oldGp; } - + void addTriangle(const osg::Vec3 v1, const osg::Vec3 v2, const osg::Vec3 v3) { - 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=lnkkid=120709bid=263057dat=121642___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel
Re: [Flightgear-devel] patch for groundcache.cxx problem
Hi Tim, On Monday 06 November 2006 10:59, Tim Moore wrote: I was seeing the problem of falling through the earth in w070n40. With this patch I can run successfully starting with --airport=kpqi. That is applied. That area needs to be overhauled anyway, but until than this problem is fixed! Thanks! Greetings Mathias - 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=lnkkid=120709bid=263057dat=121642 ___ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel