WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-07-2016, 08:34 AM
mihirradia mihirradia is offline
Member
 
Join Date: Jun 2016
Posts: 44
Zspace Stylus beam

Hi,
We have implemented a grabbing function where we pick up the object by pressing the Front button of the zSpace stylus and rotate it in the environment. Please, look at the video for your better understanding " https://youtu.be/gL-jFBKbuIA " . Now if you look at the video properly you can see that the stylus highlights the part to grab.The problem is that the stylus function is not very precise and if a user wants to pick a particular part then it's bit of tedious. Instead of that we want the stylus to project a beam so that the user is well aware of the stylus pointing direction and can grab a particular object. I'm using a vizconnect tool for the grabbing function.
Reply With Quote
  #2  
Old 11-10-2016, 02:21 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
There is currently not a built-in option for this through the vizconnect interface. However it should be possible to manually modify the config and use the RayGrabber class in grabber.py. I will look into it and try to provide an example.
Reply With Quote
  #3  
Old 11-10-2016, 03:10 PM
mihirradia mihirradia is offline
Member
 
Join Date: Jun 2016
Posts: 44
Hi Jeff,
I tried using class RayGrabber from grabber.py but it showed me an error saying that highlight was not defined. When I looked into the class RayGrabber the highlight was not defined and as it is a system file I cannot change it. I believe there is an error in Vizard.

I would be grateful if you could look into it.

Thanks in advance.
Reply With Quote
  #4  
Old 11-18-2016, 02:45 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You're right, the highlight object is not defined in the RayGrabber class. I've attached an example that uses a modified version of grabber.py so it works. By default the placement mode is point and place so the object will snap to a surface when released. The placement mode can be set to something else, such as mid-air placement, in the RayGrabber code.
Attached Files
File Type: zip RayGrabber Example.zip (7.6 KB, 893 views)
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
Zspace Stylus mihirradia Vizard 2 10-25-2016 12:55 PM
Flickering of the z space environment when pressed with z space stylus mihirradia Vizard 4 07-01-2016 10:47 AM
Zspace display in Vizconnect JB_HP_Viz Vizard 5 06-05-2015 03:28 PM
Tractor beam module to inspect objects Gladsomebeast Vizard 0 01-23-2013 04:01 PM
Problem reading VRPN info from ZSpace davev Vizard 2 10-24-2012 12:45 PM


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


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