WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-25-2014, 09:52 AM
Melody Melody is offline
Member
 
Join Date: Aug 2014
Posts: 26
Smile where can I download example scripts about force effects based on haptic device

I have been looking for the example scripts on line for a while, but nothing was founded.
Some one in this forum mentioned to go to the download and demo section of vizard. I still could not find it.
Please tell me if anyone knows where to find it. Thanks a lot!
Mine is vizard 3.0.
Reply With Quote
  #2  
Old 08-26-2014, 01:18 PM
Kevin Chiu Kevin Chiu is offline
WorldViz Team Member
 
Join Date: Feb 2012
Posts: 26
Hi,

Sorry for that the old demo which you are looking for aren't available on our web page anymore.
Can you let me know about which haptic device you have?
Thanks.

Best,
Kevin
Reply With Quote
  #3  
Old 08-27-2014, 12:27 PM
Melody Melody is offline
Member
 
Join Date: Aug 2014
Posts: 26
Thanks for replying!
My haptic device is phantom omni from sensable.
Reply With Quote
  #4  
Old 08-27-2014, 01:26 PM
Kevin Chiu Kevin Chiu is offline
WorldViz Team Member
 
Join Date: Feb 2012
Posts: 26
Here you go.
In your case please ignore the hd.dlm and hd.py, just need to use the scrips in the Examples folder.

Best,
Kevin
Attached Files
File Type: zip HapticEffects_25.zip (24.4 KB, 1790 views)
Reply With Quote
  #5  
Old 08-27-2014, 02:07 PM
Melody Melody is offline
Member
 
Join Date: Aug 2014
Posts: 26
Thanks a lot!
Reply With Quote
  #6  
Old 08-27-2014, 03:10 PM
Melody Melody is offline
Member
 
Join Date: Aug 2014
Posts: 26
Hey Kevin,

Do you have the exact version for vizard 3.0. I still could not do it. No hd. command could be found in 3.0.

Here is a snippet of my script(does not work):

effectce=device.addConstantEffect(magnitude=10,dir ection=[0,-1,0])
def buttondown(button):
if button == sensable.BUTTON_1:
effectce.trigger(0.1)
print test
viz.callback(sensable.BUTTON_1,buttondown)

If there is no version for 3.0, do you have examples for 4.0 or 5.0? I can upgrade my software later.

Thanks a lot,
Reply With Quote
  #7  
Old 08-27-2014, 03:31 PM
Kevin Chiu Kevin Chiu is offline
WorldViz Team Member
 
Join Date: Feb 2012
Posts: 26
No, I have tested them all on 3.0, 4.0, 5.0 already. It should work right away.
Can you confirm that the example scripts runs with out problem and works fine first on your end?
What is the error message you got?
For me it seems there might be just something wrong in your code.
For example the parameter you passed to the callback doesn't seems legal at least.
Shouldn't it be a BUTTONDOWN_EVENT instead of passing the button directly?
Reply With Quote
  #8  
Old 08-28-2014, 09:06 AM
Melody Melody is offline
Member
 
Join Date: Aug 2014
Posts: 26
Yea. I realized the mistake. I will try again.
So you mean I can still use hd.XX in vizard 3.0?
Thanks!
Reply With Quote
  #9  
Old 08-28-2014, 11:08 AM
Kevin Chiu Kevin Chiu is offline
WorldViz Team Member
 
Join Date: Feb 2012
Posts: 26
Of course you can, if all the example script works for you then you should be able to have it too.
Just don't forget to import the hd module if you gonna use it.

Best,
Kevin
Reply With Quote
  #10  
Old 08-29-2014, 04:15 PM
Melody Melody is offline
Member
 
Join Date: Aug 2014
Posts: 26
Can I have the command index start with hd.?
I have no idea how to define the initial position and orientation of the haptic device.
Thanks!
Reply With Quote
Reply

Tags
force, haptic

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
haptic device problem guof6570969 Vizard 2 06-09-2010 03:37 AM
Haptic Device Shadows vTony Vizard 1 05-04-2009 06:58 PM
Phantom Omni Device Scripts vSuejung Vizard 1 09-17-2008 05:42 PM
Rendering a haptic Force jalvarez Vizard 1 07-08-2008 12:59 PM
Sensable Vygreif Vizard 7 04-26-2006 02:56 PM


All times are GMT -7. The time now is 11:49 AM.


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