WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change textbox color? renama Vizard 2 10-19-2010 07:44 PM
Change Viewpoint in different scenes lilio Vizard 1 08-28-2009 02:56 PM
Change model alpha and memory leak hosier Vizard 2 06-25-2009 10:55 AM
viz.vertex coordinates lilio Vizard 6 05-16-2009 04:36 PM
Randomly and Continuously Change Avatar's Face Texture Karla Vizard 4 08-22-2008 12:14 PM


All times are GMT -7. The time now is 07:59 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC