WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-16-2013, 10:15 AM
seal seal is offline
Member
 
Join Date: Oct 2013
Posts: 8
Bouncing point of view during walking

Dear all,

I am working on a project in which the point of view of a walking person will be simulated. So I need to add fluctuation of natural walking to the main view when the subject is moving.

I was thinking about linking the main view to an moving avatar with his body bouncing during walking. Would that be possible? Or is there a better way to achieve this?

I am quite new to Vizard. Any help and suggestion would be highly appreciated.

Many thanks!
Reply With Quote
  #2  
Old 10-17-2013, 03:27 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Yes, you can link the viewpoint to the head bone of the walking avatar:
Code:
'''
Toggle avatar with spacebar
'''
import viz
import vizact
import vizinfo
viz.go()

vizinfo.InfoPanel()

ground = viz.addChild('ground.osgb')
avatar = viz.addAvatar('vcc_male2.cfg',pos=[0,0,2],euler=[180,0,0])
avatar.runAction(vizact.walkTo([0,0,15]))

head = avatar.getBone('Bip01 Head')
link = viz.link(head,viz.MainView)
link.preTrans([0,0.2,-0.7])
#Set viewpoint pitch to 0
link.setEuler([None,0,None])

vizact.onkeydown(' ',avatar.visible,viz.TOGGLE)
If you want the viewpoint to bounce more try commenting out the line:
Code:
link.setEuler([None,0,None])
Reply With Quote
  #3  
Old 10-21-2013, 09:02 AM
seal seal is offline
Member
 
Join Date: Oct 2013
Posts: 8
It works. Thank you very much!
Reply With Quote
Reply

Tags
walking

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
View point question atamasan Vizard 7 01-26-2010 05:56 PM
avatar automatically runs animation after fading into view v-clizzin Vizard 1 10-14-2009 06:01 PM
View nlfrnassimi Vizard 0 03-17-2009 03:01 AM
View nlfrnassimi Vizard 4 03-12-2009 06:25 AM
problem with stereo mode shivanangel Vizard 3 10-17-2006 10:58 AM


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


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