hi dirk, I have been rumbling around with the gamepad, lately and finally i got stuck on a little annoyance. Since OpenSG has no gamepad support, i just had to retrieve a version of glut 3.7 featuring joypad callbacks for linux. This glut library just polls out the /dev/input/js0 file every n milliseconds and returns the axis and buttons input value. 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? Thanks for your help, enrico ------------------------------------------------------- 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
