WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-28-2010, 11:40 AM
njstaley njstaley is offline
Member
 
Join Date: May 2010
Posts: 3
Mimicing Haptic Touch Events

I'm writing a script where the user will control a hand with a phantom onmi haptic pen. In this script, I would like to have either one finger, on an object that the user picks up as the 'location' of the haptic pen. I dont want to position the hand so that the finger is at the haptic pen location, as the area that I would like to monitor will change as the script runs and moving the hand to accomidate would look unrealistic.

Ideally I would be able to detect a touch event against this new point in space and apply the resulting forces to the haptic pen. At the moment, I am trying to do this by sending a sensable.TOUCH_EVENT whenever I detect a 'toch' (collision at the moment) between the new point and a haptic node. Unfortunately this does not seem to respond at all, and the hand only reacts when the center (original haptic point) touches an object.

Which finally brings me to my questions: is it possible to have the haptic pen react as though it touched a certain object even when it did not, or what effects does a standard touch event apply to the haptic pen so that the touch events can be imitated?

Thank you for your Time
Reply With Quote
  #2  
Old 06-29-2010, 02:58 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
The TOUCH_EVENT is generated internally by the haptic device. Manually generating a TOUCH_EVENT will have no effect on the device.

I don't fully understand what you are trying to accomplish, but if you want to manually apply a force to the pen then you can use a constant force effect. The docs should mention how to create various effects for the haptic device.
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
Coordinate Transforms: Vizard to Haptic VDong Vizard 1 05-14-2009 07:46 AM
Haptic Device Shadows vTony Vizard 1 05-04-2009 05:58 PM
Plugins for other haptic devices xabbu Plug-in development 5 09-17-2008 05:39 AM
Collision detection with haptic pen mjabon Vizard 3 01-17-2008 06:35 PM
haptic 3d cursor asimbh Vizard 1 11-16-2006 10:22 AM


All times are GMT -7. The time now is 03:18 AM.


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