WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-06-2014, 10:39 AM
kerscha kerscha is offline
Member
 
Join Date: Sep 2013
Posts: 9
Question Reverse Animations

I have looked all over the internet, documentation and forums and cannot find the answer to my question:

Is it possible to have an avatar animation run in reverse? I would like my avatar to be in a 'walk' animation, but walk in REVERSE.

I have tried setting the animation speed to -1 but that does not work. The only thing I could find about this in the forums was at the link below, which was never given an answer:

http://forum.worldviz.com/showthread...hlight=reverse

Thanks in advance!
Reply With Quote
  #2  
Old 08-06-2014, 12:49 PM
Frank Verberne Frank Verberne is offline
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 148
Hi Kerscha,

The only way to make an avatar run in reverse realistically is to create the custom animation yourself. You can do so with motion capture devices, or with keyframe animations. See http://docs.worldviz.com/vizard/Tuto...s_manually.htm for some more information.
Reply With Quote
  #3  
Old 08-06-2014, 01:56 PM
kerscha kerscha is offline
Member
 
Join Date: Sep 2013
Posts: 9
I understand that, but we purchased the Complete Character HD set and don't have access to the MAX files. We are limited by the animations that are already built in. I'm a little upset that there's not an easy way to just reverse the animations that already exist...
Reply With Quote
  #4  
Old 08-06-2014, 02:35 PM
Frank Verberne Frank Verberne is offline
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 148
As far as I know, you can buy the .max files for the Complete Character HD set separately, but that still is not an easy fix. In vizard, there is not much you can do to change the animations. One cumbersome way of reversing existing animations is to run the normal animation and save the rotation of every bone & the position of the pelvis bone of your Complete Character in a list. Reverse the list, and apply the rotation & position data to the corresponding bone of your Complete Character. See the code in the thread http://forum.worldviz.com/showthread.php?t=4948 for some info on that.

On a side note: I cannot easily imagine that reversing a running forward animation will create a realistic looking running backwards animation. Could you maybe elaborate what you're trying to achieve in general? Perhaps there are other (simpler) ways.
Reply With Quote
  #5  
Old 08-06-2014, 02:43 PM
kerscha kerscha is offline
Member
 
Join Date: Sep 2013
Posts: 9
What I want to do is create a type of "tour". I have created a path in 3DS MAX through my worlds that I link the Avatar to. I have the avatar facing the user and I need her to walk backwards in order to speak with the user, exactly as tour guides do.
Reply With Quote
  #6  
Old 08-06-2014, 02:56 PM
Frank Verberne Frank Verberne is offline
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 148
One option would be to put the avatar om a small platform, with her facing the user. That platform can follow the path you made in 3DS MAX, and the avatar can be linked to the platform.

Another solution could involve the avatar walking to a certain spot, then turning to the user to give the tour. The avatar could keep on talking with its back towards the user, although it is quite common for tour guides to not talk about the tour while walking.

A last option would be to record the leg movements of the standard walking motion, keep the orientation and position in a list, reverse the list and apply this reversed list to the leg bones. I don't know if it will result in a realistically looking backwards walking avatar though.
Reply With Quote
  #7  
Old 08-06-2014, 03:05 PM
kerscha kerscha is offline
Member
 
Join Date: Sep 2013
Posts: 9
I was able to reverse the walk in a simplistic way and it looks ok. Not great, but it will suffice for what we are doing. Thanks for your help, it might come in handy later on. For future reference, here's the code I came up with:

walkTime = 1.1853300333

def walkBackwards():
global walkTime
avatar.setAnimationTime(0,walkTime)
walkTime-=0.01 #change for speed
if walkTime <= 0:
walkTime = 1.1853300333
vizact.ontimer2(0.01,viz.FOREVER,walkBackwards)
Reply With Quote
Reply

Tags
animation, avatar, backwards, reverse, walk

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
"reverting" between animations & linking objects to bones Lithium Vizard 3 08-08-2011 12:01 PM
Trouble using custom animations for Live Characters IGoudt Vizard 0 09-24-2009 07:37 AM
animations dan12345 Vizard 3 07-14-2008 12:43 PM
problem with female animations vmonkey Vizard 1 10-07-2005 11:36 AM
loading CAF animations vadrian Vizard 1 06-02-2005 05:38 PM


All times are GMT -7. The time now is 01:31 PM.


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