开发者

C++ basic qt question

开发者 https://www.devze.com 2023-01-22 09:59 出处:网络
Does someone know a fast way to add the ability to rotate and move a 3D model using Qt? Obviously, I have to make changes to the world matrix based on the mouse and keyboard movements, and hence I sh

Does someone know a fast way to add the ability to rotate and move a 3D model using Qt?

Obviously, I have to make changes to the world matrix based on the mouse and keyboard movements, and hence I should somehow handle the appropriate mouseEvents and keyboardEvens.

For a 3d camera this seems a bit tricky and although I could implement it myself, I'd better stick to so开发者_开发技巧mething ready.

Does anyone know or have an example which handles this kind of actions and reflects them to the world matrix?

Thank you.


This might be what you're looking for. It is an example that loads .obj models and allows you to rotate them with the mouse. It also shows you how to render Qt dialogs within the OpenGL scene.

0

精彩评论

暂无评论...
验证码 换一张
取 消