View Single Post
  #1  
Old 02-04-2011, 02:10 PM
jincheker jincheker is offline
Member
 
Join Date: Oct 2009
Posts: 15
Coordinates change

Hi, I try to make some program that could add on-the-fly objects by following the path of mouse movement.

I use code like this
Code:
PointBall = viz.add('ball.wrl')
PointBall.color(viz.RED)
PointBall.setPosition(e.x , e.y,2)
where variable "e" is obtained by left-button mouse event.

I also make PivotNavigate by mouse on, but disabled left-button function part.

The problem is: when I move the mouse on the screen, those generated objects do not follow the trajectory of the mouse cursor, there are some offset.

How can I neglect this, and if I zoom in or zoom out the screen, does this method still apply?

Thanks
Reply With Quote