Hi Allan,

On Tue, 2005-03-08 at 14:40 +0100, Allan Rasmusson wrote:
> Hi.
> I've encountered a strange behaviour of the (trackball) navigator. When 
> attaching a (passive)viewport which fills the entire PassiveWindow 
> everything works fine. If using a viewport which only fills the lower 
> left quadrant of the window, the behaviour of the navigator gets messed up:
> 
> Rotation around the X-axis works fine.
> Rotation around the Z-axis works as if the viewport took up the whole 
> window.
> Rotation around the Y-axis is somehow only possible around the center of 
> the upper left quadrant of the window.
> 
> I'm using a QGlWidget which has (0,0) in the upper left corner. I've 
> tried to transform these into (0,0) in the lower right corner, but got 
> the same behaviuor.
> 
> Do I somehow need to tell the navigator the center of it's coordinate 
> system, or is there a special transformation need to do?

The Navigators are designed for local coordinates, i.e. viewport-
relative with (0,0) in the upper left corner. But there is something
stranger going on, just subtracting the upper left viewport corner
didn't give me what I expected. Not sure when I'll have time to get to
it. :(

        Dirk

-- 
Dirk Reiners <[EMAIL PROTECTED]>



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to