Hi Enrico,

On Tue, 2005-09-20 at 14:56 +0200, Enrico Borrione wrote:
> Based on this infos, i tried out to write my
> own Joypad manager, basically intercepting 
> the Navigator stuff, calculating the new values for the 
> >From and At points and updating them into the scene.
> As for now the camera correctly yaws and pitches...
> but... but... but... it also rolls a bit, 
> ad i'd like to prevent that. 
> The fun thing is that the rolling is very limited,
> say 2-3 degrees in the direction in which 
> I am rotating. 
> I tried to reset the Up vector every time i 
> update the From and At points, but that didn't
> solved the problem...
> As for now i am doing something like:
> 
> getAt()
> compute newAt
> nav->setUp(0,1,0);
> naw->setFrom(From);
> nav->setAt (newAt);
> redisplay.
> 
> How may i change my code to make the Up vector 
> staying always vertical?

Hm, that should do it. Can you record some from/at pairs that exhibit
the problem? Can you reproduce it in a tutorial program or somethiong
like that?

Sorry, no better idea right now. :(

        Dirk




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to