Obviously, I use QMatrix4x4 to store the coordinate matrix. So i define a C++ class, the class has some member variables that are QMatrix4x4 type. The Transform accept scale, matrix, translation or rotation to define the property. Second, i notice Entity has a property:Transform, which decide the position and angle of the 3D model displaying in the scene. I think these two example include almost all the detail you need when loading and displaying the 3D model. So I decide using QML to display the model and using C++ to control it.įirst, loading and displaying the 3D model using QML, you can refer to Qt 3D: Wireframe QML Example and Qt 3D: Scene3D QML Example. ![]() Initially, I try to use C++ to complete all the function(display and control), but I find it a little complex for me. Thanks for all the help.I have found to load the 3D model file(.obj) into Qt and control it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |