Jump to content

3D Scene Graph and Pick Model method


vugie

Recommended Posts

I'm using 3D Scene Graph control to let the user select sth on 3D model. This control has method "Pick Model" which gets xy coordinates within control and outputs references of objects on proper line of sight. I'm getting xy coordinates with "Mouse Down" event for that control and it works. But how to determine which point exactly user clicked? In terms of 3D coords, uv, face number or sth like this? Have I to manually calculate intersection of object and line of sight taking into account current projection and transformation? Generally quite complex (requires space sorting algorithm) and potentially slow...

Another point. I would prefer to use rather 3D window than a control, because of speed. SceneWindow class has similar method - "Pick". But how to determine xy coordinates user clicked at? Have I to use API for that?

LV 8.2.1

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.