Rotating Cube Visualization Best Approach
-
Hi Everyone,
I would appreciate some suggestions.
I want to develop a small application using QML that receives the pitch, roll, and yaw values from the Accelerometer (using some microcontroller and sending them over a serial port).
And when this data is received I want to visualize the position of my device, and the changes in the device should be real-time, which means as soon as the values from the sensor change, this cube also changes its position in real-time.
I can manage the Serial Communication part but need suggestions for this visualization, it would be 3D in nature, a sort of cube that moves/changes its position in all x, y, and z directions.
A similar thing is shown in the following video but it uses Processing IDE.
https://www.youtube.com/watch?v=KMhbV1p3MWk
Let me know if someone has some suggestions for me.
Thanks -
Hi Everyone,
I would appreciate some suggestions.
I want to develop a small application using QML that receives the pitch, roll, and yaw values from the Accelerometer (using some microcontroller and sending them over a serial port).
And when this data is received I want to visualize the position of my device, and the changes in the device should be real-time, which means as soon as the values from the sensor change, this cube also changes its position in real-time.
I can manage the Serial Communication part but need suggestions for this visualization, it would be 3D in nature, a sort of cube that moves/changes its position in all x, y, and z directions.
A similar thing is shown in the following video but it uses Processing IDE.
https://www.youtube.com/watch?v=KMhbV1p3MWk
Let me know if someone has some suggestions for me.
Thanks@xpress_embedo have you looked at the Qt 3D Examples?
BTW: if you want to work with QML, you probably want to be using Qt 6. It has a lot of QML enhancements.
-
@xpress_embedo have you looked at the Qt 3D Examples?
BTW: if you want to work with QML, you probably want to be using Qt 6. It has a lot of QML enhancements.
@mzimmers thank you for your message. Yes i had a look at few examples.
But then I get confused because of the terms like Camera, Light, Euler Angles etc.
I guess all these terms are important for 3d visualization.
Can you or someone suggest me some good tutorial on this or you guys think that Qt documentation is sufficient?Because I couldn't understand these terms and hence will not be able to rotate the 3d Cube.