WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-18-2016, 03:55 AM
pawan pawan is offline
Member
 
Join Date: Jul 2016
Posts: 7
Grabbing an object

hi guys,
I am a newbie to Vizard, and stucked with a scenario like:
i have a dentist cabin .osgb from where i need to make an avatar(head n hand) to pick a particular instrument like "anistropy",
1) so, i fetched that anistrophy using cabin(osgb object).getChild('Shape1-GEODE') ("Please update if there is any other way out or i am wrong")
2) using grabber tool i did succeded to pick the instrument but its not fitting perfectly in hand and looking away from hand when moving mouse
3) can i link anistropy to hand bone or something......

THanks for any kind of help
Reply With Quote
  #2  
Old 07-19-2016, 04:56 AM
rajnishv rajnishv is offline
Member
 
Join Date: Jan 2016
Location: Kalina,Sanatcruz(East),Mumbai,Maharashtra,India
Posts: 94
Hi Pawan,
I think what you want is related to gesture.
Try using 'Gestures' option in the vizconnect for the config file you have prepared for ur project.
Click on Gestures,the you will get option for Right and left hand and select GESTURE_FIST and then add it.
You may try selecting other gestures as well and check if it they suits your needs.

Mr.Rajnish Vishwakarma
Software Developer for interactive media
at
Xenium Digital Pvt. Ltd,Mumbai
Reply With Quote
  #3  
Old 07-20-2016, 06:22 AM
pawan pawan is offline
Member
 
Join Date: Jul 2016
Posts: 7
Thanks a lot rajnish for your reply,
i already updated gesture for the avatar
But the real problem was that anistrophy's is the child of some parent, thats why it's not able to link to the hand, so when hand is grabbing the tool, i am changing its parent to WORLD, it's working good now!!

One more thing i want to ask is how can we make an avatar sit? do we need a new .cfg file or we can do something from vizard itself, as i did something by using avatar bone, it got the shape(sitting) but doesnot exactly looks like sitting, its moving(like hanging in air)
Reply With Quote
  #4  
Old 07-21-2016, 12:22 AM
rajnishv rajnishv is offline
Member
 
Join Date: Jan 2016
Location: Kalina,Sanatcruz(East),Mumbai,Maharashtra,India
Posts: 94
Welcome pawan,
Which avatar -The avatar which is in .config(view perspective) or the avatar in the scene?
If the avatar is for the scene ,u may refer the script in the or follow the link.http://docs.worldviz.com/vizard/#Tut...ty_Sensors.htm.
U may get avatar sitting with animations.
If the avatar is the one which u have taken in the vizconnect,then you can use -vizconnect.getTransport().getNode3d() and apply logic and functions as per your requirement.which can move to transport down and stop the transport movement and which move the view point (as viewpoint is child of transport)which in turn get make u feel that u r sitting.

This might help you
Thanx and Regards:

Mr.Rajnish Vishwakarma
Software Developer for interactive digital media
at
Xenium Digital Pvt Ltd,Mumbai
Reply With Quote
Reply

Tags
grab, grabber, link, osgb

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
Rotate object around mainView? performlabrit Vizard 3 12-19-2013 07:31 AM
How to render a texture of the transparent object and then blur it whj Vizard 1 09-25-2012 04:15 PM
grabbing the object under mouse dwaik Vizard 2 03-02-2010 02:46 AM
retrieve Object names Geoffrey Vizard 11 12-11-2009 05:26 AM
rotate to object jargon Vizard 1 08-08-2005 01:20 PM


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


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