WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-31-2009, 04:31 AM
omidbrb omidbrb is offline
Member
 
Join Date: Dec 2008
Posts: 27
Accuracy of the screentoworld function

Hi,

I'm using the screentoworld and mousepos functions:

Code:
line = viz.screentoworld(viz.mousepos())
but for every mouse position, the starting point of the line generated by screentoworld is the same:

mousepos: [0.62077593803405762, 0.43906509876251221]
begin: [0,2,0]
end: [-34953,-2241,37070]

mousepos: [0.30663329362869263, 0.65108513832092285]
begin: [0,2,0]
end: [-44186,5483,24870]

Could you please correct me if I'm using it incorrectly ? Could it be because the screentoworld function is generating integers rather than real numbers?

Best,
Omid
Reply With Quote
  #2  
Old 03-31-2009, 06:09 AM
omidbrb omidbrb is offline
Member
 
Join Date: Dec 2008
Posts: 27
Sorry, that was my mistake. It works correctly.
Reply With Quote
Reply

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
Walking Function Moh200jo Vizard 2 02-24-2009 10:07 AM
Documentating function names aaThomas Vizard 5 05-15-2007 09:50 AM
Do you know how to send a value for 'pool' to the onActionEnd function? ghazanfar Vizard 1 03-22-2007 10:25 AM
timers and director function Jerry Vizard 1 06-22-2006 09:47 AM
node3d.center function tavaksai Vizard 3 08-13-2004 11:05 AM


All times are GMT -7. The time now is 02:34 PM.


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