Solved How to perform clickable events on 3d Mesh object
-
I am working on a Qt3D model where I have rendered the model and also working perfectly. Then, I wanted to perform clickable events on the 3D object. Let's say, If I click the model, a dialog should pop up. For example, Let's say, I have a Human 3d Model rendered if I click the head, a dialog should pop up displaying information about the head. Similarly, if I click hand, chest, or any other part, a dialog should pop up displaying information about the respective part.
How to accomplish this method?. Please, Can anyone help me. Thanks in Advance.
-
@lakshmanGiri
I have a clumsy method:we can rewrite the virtual function that responds to mouse click events,and then calculate the 3D body parts corresponding to the human body by the coordinates of click position,and finally convert the information parameters of these body parts into a string is passed to QMessageBox.
I don't know if this is feasible? -
@Poor-English Hi, Thank you for your reply. But, how to calculate the coordinates of click position, is there any way?
-
-
@Poor-English Thank you, I was able to accomplish it by obtaining the coordinates of the individual part. Also, with the help of coordinates, I was able to write a function to perform clickable events