Hi team,

I am writing custom camera navigation.
When I look up QGLView for reference, there are a few lines of codes that I 
don't understand the logic:
QGLView::mouseMoveEvent(QMouseEvent* e):
       if (e->modifiers() == d->panModifiers) {
            d->camera->setEye(d->startEye);
            d->camera->setCenter(d->startCenter);
            d->camera->setUpVector(d->startUpVector);
        }

Why it's needed to reset the eye / center / up vector in every frame? As I 
tried to remove them from the code, the panning / tilting would become a big 
mess. It looks a bit weird to me. Maybe I have missed something?

Thanks.
Best Regards,

Yun-Ta
_______________________________________________
Qt-3d mailing list
Qt-3d@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-3d

Reply via email to