> I think the problem is that you are expecting the cloud height to
> indicate the location
> of sprite centers, wherease the code is expecting it to be the height
> of the actual
> cloud.
>
> The code actually _subtracts_ the minimum texture height from the cloud
> height to determine where to place sprite centers.
>
> So, the height should always be greater than the minimum texture height.

Oops... In hindsight, a rather obvious explanation of what I'm seeing - a
negative number created in the subtraction would of course invert the
shading pattern seen later. Rather embarrassing...

Thanks, I'll correct my code.

* Thorsten


------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to