On 12 Aug 2010, at 00:40, Stuart Buchanan wrote:

> This was re-factored to get rid of some old vector calculations by James:
> 
> http://gitorious.org/fg/simgear/commit/aa859c488f21d0b1f8d54c657e23a738dcadacca
> 
>> From a code read of the diffs, I think the course for the viewer
> movement was reversed during the refactoring and should be from the
> current position to the last position, as we want the cloud field to
> move towards us. However, changing that didn't have the effect I
> expected, just shifted the problem by 90 degrees so the clouds moved
> away from the aircraft when heading E/W rather than N/S. Eventually I
> hacked the the ay value as the patch below shows, which does appear to
> give the correct behaviour (at least around EGPH).
> 
> That suggests the texture coordinates are reversed in the y-axis, but
> I don't see how that could have changed recently to introduce this
> discrepancy
> 
> I'll take another look when I get the chance, but in the meantime if
> anyone has any bright ideas, please let me know.

I'll take a look when I get a free moment, hopefully this evening but maybe the 
weekend. As you say, I really don't understand how the Point3D removal could 
have caused a 90 degree shift; it's entirely possible I introduced a 180 degree 
shift. Hmm.

James


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to