On Fri, Feb 24, 2012 at 7:38 PM, Stuart Buchanan wrote: > On Fri, Feb 24, 2012 at 8:00 AM, Thorsten Renk wrote: >> Not as such, but if the whole file structure gets redone, might we at this >> point consider making regional textures by xml conditionals easy in the >> new file structure? >> >> See here for the concept: >> http://www.flightgear.org/forums/viewtopic.php?f=5&t=12031&start=15 > > The work I'm doing should make this a bit easier, though I'm not changing > the file format itself. > >> If we add something like this in now, we might also come to the point of >> implementing a re-parsing of materials.xml at runtime, so textures could >> switch on a transatlantic flight from US type to Europe type. > > Certainly. I'm now familiar enough with the code that this should be fairly > straightforward to implement. I'll add it to my TODO list. There are already > a couple of conditional statements in materials[-dds].xml that really should > be > evaluated at tile-load time rather than startup.
I've just committed a fix to simgear/next that evaluates the <conditions> within materials.xml when a tile is loaded rather than once at startup. This means one can change between summer and winter textures in sim by setting /sim/startup/season=[winter|summer] and then reloading the tiles. That property obviously needs to be renamed, and I may add it as an option to the rendering dialog. This should make "regionalized" textures a more compelling idea. -Stuart ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel