hi to all!

playing with TrackballNavigator, i noticed a strange behaviour, i don't 
know if it is a bug or a feature, in any case it is not well documented.

My issue: i was trying to set( Matrix ) on a TrackballNavigator, using a 
Matrix obtained using getMatrix() on another one. I did expect the 
viewing parameters of both navigators to be the same after set. I was 
wrong. The only way to achieve my goal is to use set( from, at, up ) 
after getting from at up out of the source navigator.

The reason is that set( Matrix ) does not copy the matrix directly, but 
infers (from at up) triplette from the given matrix, using the *old* 
_rDistance to calculate at point, and then internally re-creates the 
matrix using set( from, at, up ) using the just calculated parameters.

If the old _rDistance is different from the one i expect to set using 
the new matrix, the result is different from the one i expect to obtain.

If it is a feature, i suggest to add a line in the documentation to make 
it clearer, if it is a bug i hope this post is useful to solve the issue.

greetings

francesco

-------------------------------------------------------------------------
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/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to