FPS camera rotating by itself. QT 4.8 + OpenGL + C++ -
i'm trying port height map visualization program written on c++, sfml qt, can shown on widget , controlled gui elements. the problem when start application, camera starts roll around center fast(actually, looks terrain mesh flying around camera, earth around sun :), without actions side(e.g moving mouse, pressing buttons). camera should move forward, back, left, right when press w,a,s,d , around when move mouse(just typical fps camera behavior). i think problem in program's main loop, because it's no standard while(true){ //do something// } approach in qt, , it's little confusing. here's code: oglwidget class ( here i'm drawing stuff. problem somewhere here think) : class oglwidget : public qglwidget { q_object public: oglwidget(qwidget *parent = 0); ~oglwidget(void); public: void paintgl(); void initializegl(); void resizegl(); public: void updatecamera(); public slots: void mainloop(); protected: v...