Open Xiaojiean opened 3 years ago
Sorry, it's a proprietary file format. What the loader does is create a QTreeWidgetItem for each whole object in the 3D model, arranging them hierarchically according to design information. Each object may be composed of one or more geometries. The loader calls Renderer::addSceneDrawable for each geometry, passing its triangle mesh. This generates a drawableID, which is then stored in a vector inside the corresponding QTreeWidgetItem. See Hierarchy::getRenderData, which accesses back this information to determine which drawables need to be selected whenever a QTreeWidgetItem is selected. The code should work if you put the entire 3D model within a single QTreeWidgetItem, or create several QTreeWidgetItems at the same hierarchy level, one for each object. Hope this helps.
Thanks for your help
Can you give me a simple example?
The source code contains RVM library. Can you provide the code?