Bin Posted July 25, 2011 Share Posted July 25, 2011 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 Quote Link to comment Share on other sites More sharing options...
anim Posted July 25, 2011 Share Posted July 25, 2011 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 Quote Link to comment Share on other sites More sharing options...
Bin Posted July 26, 2011 Author Share Posted July 26, 2011 (edited) thanks for the info though, Tomas. appreciate it. well, I saw this thread http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=22731 it's kinda solving the problem since the purpose to put a sphere there is just for radius display. Edited July 26, 2011 by Bin Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.