Hi Nicolas,

if I understand you correctly, you want FlightGear to superimpose a
given texture over a whole terrain tile, given that a texture file with
the same name as the tile is found.

I think that this would require that either

a) TerraGear generate appropriate texture coordinates for the tile,
mapping the texture continuously over the whole tile, or

b) in case of loadPhotoScenery, the texture coordinates contained in the
.btg.gz must be ignored and rebuilt on the fly by FlightGear.

Variant a) might be possible by creating a copy of the photo tool using
a whole texture instead of a chopped texture. However, it is
questionable whether such a large texture for a whole tile is well
handled by the graphics subsystem.

Variant b) might have generate a large amount of processor load when
loading a tile, as the generation of the texture coordinates requires
transformation of vertex coordinates from cartesian to geodetic, which
involves a lot of heavy maths (which is one of the reasons why TerraGear
is doing such calculations up-front).

I'm not sure why the photo-tool from TerraGear is not applicable for you.

Cheers,
Ralf

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to