Home > Back-end >  Dear bosses, consult qt quick 3 d problem. How to use ray selected custom models in the triangle?
Dear bosses, consult qt quick 3 d problem. How to use ray selected custom models in the triangle?

Time:05-18

I inherit QQuick3DGeometry custom a generated custom model of plane, the plane is composed of a large number of triangle, and then going to use a mouse back to hit points by a Ray hit the plane triangle, but can't find the quick Ray method of 3 d, so use the Internet in the example: pickable in custom models: set to true, the QML view3D mouse click event
Var result=the pick (mouseX, mouseY); But always can't return anything, could you tell me where I went wrong, or qt quick 3 d is how to use the mouse to select model and return model location of the mouse in the triangle?

CodePudding user response:

Use three3d method is easy to implement. I'm not familiar with QT, a week, can't find any way
  • Related