On Tuesday 01 May 2012 12:19:27 Renk Thorsten wrote:
> Question to Fred (and other Effect people) - is this a bug or am I misusing
> the system?
>
> What happens is as follows:
>
> * the code finds a runway and looks first through terrain-default.eff to see
> what it should do. It finds, if skydome shader is on and landmass is above
> 4, a technique 4 telling it to render the runway with
> terrain-haze-detailed.*
>
> * in that technique, it gets the advice to use texture unit 6 for snow
>
> * however, parsing further, the code finds an effect with a higher technique
> declared for runway as well (the rain reflection). In spite of this being
> not executed because a technique with a lower number is used, this
> overwrites the texture associated with texture unit 6.
>
> * as a result, rainbows instead of snow appear
>
> In my naive opinion, that looks a bit like a bug, because a technique with a
> larger number which isn't used shouldn't be parsed or be able to set
> textures for what actually is used. But maybe I misunderstand how the
> system is intended to work.
The runway effect parameters override any parameters it has in common with the
terrain-default effect (since it inherits from it), it is not a bug, that's
how the system is supposed to work.
This is fixable by changing the snow texture unit number in the terrain
default, so it doesn't get overridden by the runway settings, or by changing
the runway effect itself, and adding another texture unit there for the snow,
and an altered technique 4 that caters for the differing texture unit numbers.
HTH,
Emilian
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel