Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 MPU 6050 芯片,从中可以读取加速度计(X、Y、Z)和陀螺仪(俯仰、滚动、偏航)读数。如何通过在 Qt 中使用这些加速度计和陀螺仪读数来旋转 3D 图像,任何示例项目或示例?请帮忙
我想最好的方法是 QT 的 OpenGL 小部件。
你可以在这里找到好的 OpenGL 教程:NeHe。QT 中 OpenGL 的入口点在这里:QtOpenGL
其余的:从您的设备读取输入并加载 3d 图像由您决定。这在很大程度上取决于您的 3D 图像的设备和格式。关于 3D 图像:查看 NeHe 的教程。