For everybody, to apply the 2nd Stuart's patch ; don't forget adding the
TreeBin.cxx and TreeBin.hxx in the file : simgear/scene/tgdb/Makefile.am

The patch :
Index: Makefile.am
===================================================================
RCS file: /var/cvs/SimGear-0.3/source/simgear/scene/tgdb/Makefile.am,v
retrieving revision 1.7
diff -u -r1.7 Makefile.am
--- Makefile.am 13 Dec 2007 23:30:25 -0000      1.7
+++ Makefile.am 26 Jan 2008 18:55:17 -0000
@@ -18,7 +18,8 @@
        SGTexturedTriangleBin.hxx \
        SGTriangleBin.hxx \
        SGVertexArrayBin.hxx \
-       GroundLightManager.hxx
+       GroundLightManager.hxx \
+       TreeBin.hxx
 
 libsgtgdb_a_SOURCES = \
        apt_signs.cxx \
@@ -28,6 +29,7 @@
        SGOceanTile.cxx \
        SGReaderWriterBTG.cxx \
        SGVasiDrawable.cxx \
-       GroundLightManager.cxx
+       GroundLightManager.cxx \
+       TreeBin.cxx
 
 INCLUDES = -I$(top_srcdir)



Then, if you want to test quickly the "Trees" feature :
Index: tileentry.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/Scenery/tileentry.cxx,v
retrieving revision 1.64
diff -u -r1.64 tileentry.cxx
--- tileentry.cxx       20 Dec 2007 23:20:52 -0000      1.64
+++ tileentry.cxx       26 Jan 2008 18:56:36 -0000
@@ -273,6 +273,7 @@
     options->setMatlib(globals->get_matlib());
     options->setCalcLights(is_base);
     options->setUseRandomObjects(use_random_objects);
+    options->setUseRandomVegetation(true);
     osg::Node* node = osgDB::readNodeFile(path, options.get());
     if (node)
       geometry->addChild(node);



Now, we need to correct all terrains... to have trees working ; 
and add corn (with or without OGM) field, wheat field...


Le samedi 26 janvier 2008 à 19:29 +0100, Maik Justus a écrit :
> Hi Fred, Hi Stuart,
> 
> Frederic Bouvier schrieb am 26.01.2008 19:22:
> > Stuart,
> >
> > Stuart Buchanan a écrit :
> >   
> >> --- Stuart Buchanan wrote:
> >>   
> >>     
> >>> Hi All,
> >>>
> >>> Just a quick note to mention that I've now implemented random tree 
> >>> height, and
> >>> multiple textures as suggested by Curt. Screenshot here:
> >>>
> >>> http://www.nanjika.co.uk/flightgear/forest2.jpg
> >>>
> >>> Still some work to be done, but it is looking more realistic.
> >>>
> >>> Tim - I've been cleaning up my code a bit, so unless you've already 
> >>> started,
> >>> I'd
> >>> hold off trying to kick my previous patch into shape for CVS. I should 
> >>> have a
> >>> new
> >>> patch fairly soon.
> >>>     
> >>>       
> >> A patch for this is now available from
> >> http:/www.nanjika.co.uk/flightgear/trees.tar.gz.
> >>
> >> Note that there are some additional new files for the tree textures and 
> >> some
> >> re-organizing of the code - see the included README.
> >>   
> >>     
> >
> > I applied your new patch and I don't have trees, although they were
> > working with the last one. 
> same here (but your new screenshot looks great).
> 
> Maik
> > It seems to me that there is a missing bit
> > for flightgear because the setUseRandomVegetation function is never
> > called and stay to false. Maybe there is a patch to options.cxx sitting
> > on your disc.
> >
> > -Fred
> >
> >   
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Flightgear-devel mailing list
> Flightgear-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/flightgear-devel
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to