Hi Stuart,
Stuart Buchanan schrieb am 28.01.2008 10:25:
>
> If you have a look in the data/Textures/Trees/ directory you will see that the
> .rgb files are actually a strip of different trees, evenly distributed along 
> the
> x-axis. You can change them in any way you want, as long as you ensure that 
> they
> are evenly spaced, and you update the <tree-varieties> tag in materials.xml to
> match. 
>
>   
The "transparency--bug" appears only, where the alpha channel of the 
texture is neither 0 nor 100%. Therefore I changed the alpha channel to 
be only zero or 100%. But the problem is not solved. The texture is 
scaled (mip mapping?), and therefore the new alpha value is interpolated 
between the original values resulting in semi-transparent values. If it 
would be possible to exclude the alpha channel of the tree-textures from 
the interpolation, the transparency problem could be solved fully 
without any sorting (just by changing the textures). If it is not 
possible: sorting of the triangles within each tree would help in many 
cases.

Maik


-------------------------------------------------------------------------
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