Hi Stuart, ----- "Stuart Buchanan" a écrit :
> Hi All, > > For a while I've been thinking about improving our material handling > to allow for more regional variation. For example, the buildings in > towns in the USA are quite different from those in the UK, and an > evergreen forest in the Carribean is quite different to one in > Norway. > > I'm currently working on improvements to the materials library > (simgear/scene/mat/matlib.cxx primarily) so that one can define a > material overlay for a given region. > > So one can define a region with lat/lon (possibly with a convex hull > of points, or possibly just a min/max lat/lon) and a set of material > definitions which over-ride this of the default materials.xml. > > When determining the material for a given point, the library goes > through each region in turn, and if the current point lies within it > and there is an appropriate materials definition, uses it. Obviously > there would be a global region with the current materials.xml file > referenced. > > I'm quite some way from a complete solution, but I thought I would > bring it up as I suspect that many other people have thought about > this as well in the past. What about putting subset of the current materials.xml inside the scenery tree ? The material library could search either, in that order : 1- ./tile.mat.xml ( along with tile.stg and tile.btg.gz ) 2- ./materials.xml (shared for the 1x1 area ) 3- ../materials.xml (shared for the 10x10 area ) 4- $FG_ROOT/materials.xml for a given material. -Fred -- Frédéric Bouvier http://my.fotolia.com/frfoto/ Photo gallery - album photo http://www.youtube.com/user/fgfred64 Videos ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

