#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
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) |
#4
|
|||
|
|||
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 |
Tags |
grab, grabber, link, osgb |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
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 |