Scenery LOD ideas for FlightGear: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (moving forum discussion to the wiki: http://flightgear.org/forums/viewtopic.php?f=5&t=15132&p=148846#p148837)
 
Line 20: Line 20:
= References =
= References =
* http://flightgear.org/forums/viewtopic.php?f=5&t=15132&p=148846#p148837
* http://flightgear.org/forums/viewtopic.php?f=5&t=15132&p=148846#p148837
* http://www.flightgear.org/forums/viewtopic.php?f=6&t=12005&start=45#p137855
* http://www.flightgear.org/forums/viewtopic.php?f=6&t=12005&start=45#p137873

Revision as of 20:57, 8 February 2012

Moving forum discussion to the wiki:

Ideas

Maybe there could be one single globe texture, and each tile btg would have it's correct texture coordinates into that image.

For LOD, I'd implement something like this :

  • Allocate a huge texture for a single 10x10 degrees area
  • load tiles as usual
  • render the tile to a small subpart of the huge texture
  • replace the tile geometry by a quad using the corners of the tile and map the small chunk of texture to it
  • unload the tile geometry to free memory
  • repeat for each tile of that area
  • save the texture to disk and repeat for another 10x10 degrees area

Sharing the same texture for a huge area save state changes. The tile quad geometry could be saved in the btg format to a Terrain.LowRes directory tree, using the material property to reference the shared texture


References