Hi Simon,
Simon Beisel wrote:
> I know it is difficult to describe an to understand, thats why i didn't
> get to the solution right now.
>
> I try it again:
> The navigator (which is described by from, up, at and a distance value)
> for example rotates my visualization (which is a medical volume
> datasets). In this case the from-vector stays the same, but the
> up-vectors changed.
Hm, not sure about that one. When you rotate an object on screen, usually the
at
point stays the same, but the from point changes. From is the position of the
viewer, at the point he's looking at, and up is the general direction of up (or
the inverse of the gravity direction).
> For my calculations I assume that the volume is
> neither rotated, nor shifted (by at-vector) or anything else. Instead I
> need to rotate and shift the "viewpoint" which at the beginning lies
> along the z-axis and has standard up vector an at-point is (0,0,0). So
> at the beginning the from-point gives me the right coordinates. But
> after rotating it doesn't anymore, because I need to do some further
> calculations with the up-vector. Probably one have to do the rotation
> that the up-vector describes exactly the other way for my "viewpoint"?
> My question was that way, if there is a chance to get that rotation
> described by the up vector and the shift by the at-point and apply them
> "inverted" to the "viewpoint".
If you use the getFrom/getAt/getUp from the Navigator, that should give you the
values that you need, I'd think. Can you try to do some well-defined changes
(like rotate 90 degrees) and compare the values you get from those methods to
those that you'd expect and tell us what the difference is?
Yours
Dirk
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users