Jump to content

sphere on mouse


Bin

Recommended Posts

Hi, I am running into this situation that I want to attach a simple sphere onto the mouse just for display purpose.

the "mouse" chop gets the position x y on screen space, but I don't know how to convert it to the 3d space coordinates so I can feed it into the translate of the sphere to let it move accordingly...

or maybe there's other solution for this?

thanks

Link to comment
Share on other sites

I guess you cannot translate them to 3D unless you can gather viewport position and dimensions (I didn't find a way to do that)

because mouse chop will return mouse position normalized to whole screen

but you can use Paint SOP which can gather info about mouse position in 3D space as well as other data like hit primitive and hit UVs, etc.

you can then record that data with Record CHOP or something

but this may not be what you want, because while you are recording the mouse position you need to be in active Paint SOP, so if you want that as realtime cursor while working then you may be out of luck, but otherwise it may serve you just fine

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...