WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-24-2009, 06:30 PM
billjarrold billjarrold is offline
Member
 
Join Date: Jul 2009
Location: San Francisco Bay Area
Posts: 39
why is time faster in my virtual world?

(This is a post and a solution to a post! I first went to the trouble of writing it up. But going to that trouble caused me to figure out the problem. Since I had gone to the trouble of writing it up I figured I would post the problem and the solution).

Why is time in my virtual world seeming to go by so much faster than in the real world? In other words, an event (a waittime) that should last a few seconds seems to take a few hundredths of a second. Has anyone seen behavior like this?

One idea (see below as to why) is that time goes faster in complex worlds than it does for simple ones. Does anyone know if this is true or false?

Apart from world complexity, are there other hypotheses as to why time seems to speed up in some worlds?

Is this a sign that there is some sort of bug or bad practice in the code that created my world?

Here is some "ground truth" context to my question:

Thanks to the post by Jeff called "Vizard tech tip: Blinking Avatars"
(about making avatars blink their eyes), I am able to make avatars with
blinking eyes.

I used his code verbatim and it behaves as expected when I have a file that
has his verbatim code and nothing else. E.g. when I have this...

wait_blink = vizact.waittime(vizact.randfloat(1,5))

...blinks take, roughtly 2 to 5 seconds. And when I have this...

wait_blink = vizact.waittime(vizact.randfloat(1,2))

...they happen faster.

However, in *my* virtual world, if I use those parameters (and other parameters in his post) the blinks happen way to fast. My world has 9 avatars moving their heads according to an array of eulers, the avatars are sensitive to whether the human's HMD is pointed at them. (The avatars are constantly fading to invisible unless they are looked at and then they lighten up). This is why I say my world is more complex than the verbatim version from Jeff's post.

To make it look like a normal person, instead of saying...

wait_blink = vizact.waittime(vizact.randfloat(1,5))

...I find that I have to say...

wait_blink = vizact.waittime(vizact.randfloat(1000,5000))

...to make it look normal. Analogously I had to change the
eye close and open action speeds. Thus, where in Jeff's code
we find that 0.1 in the following...

close_eye = vizact.morph(BLINK_MORPH,1,0.1)
open_eye = vizact.morph(BLINK_MORPH,0,0.1)

..gives us a nice eye blink speed, it is too fast in my world. To make
it look normal in my world I need to do this...

close_eye = vizact.morph(BLINK_MORPH,1,200)
open_eye = vizact.morph(BLINK_MORPH,0,200)

...Any thoughts here?

Maybe the fact that my avatars are constantly having setEuler called on their heads so that their head motions can follow head motion recordings of real humans.

One more odd thing I do: As I newbie, I'm not sure how to make the avatars sit and stay still. I find there is a good animation that I can call and then call freeze on it. That way they stay put and look like normal people staying still
while seated...Here is how I do that...I basically have them (they are from the complete characters set) do action 32 and then freeze. However, they do action 32 sped up very fast (1000X) and then freeze. Thus, "to us humans" it basically looks like they are just sitting there frozen.

sit_and_freeze = vizact.animation(32, freeze = True)
avatar.addAction(sit_and_freeze)
avatar.speed(1000)

So, in sum, again my main questions are:

What are factors known to make virtual events or virtual time (such as waittime or morph events) happen faster?

Do complex worlds cause this?

Bad coding practices?

Constantly having setEuler called on avatar heads to animate head motion?

My hack for having the avatar assume a seated posture?

Other hypotheses?

Thanks,

Bill
Reply With Quote
  #2  
Old 11-24-2009, 06:33 PM
billjarrold billjarrold is offline
Member
 
Join Date: Jul 2009
Location: San Francisco Bay Area
Posts: 39
And now for my answer! (Like I said above, the act of writing up this report caused me to dig a little deeper and as a result I solved the problem)...

The problem was made clear when I remembered the hack I did to make them sit (that was the last thing I added to my post). I.e....

sit_and_freeze = vizact.animation(32, freeze = True)
avatar.addAction(sit_and_freeze)
avatar.speed(1000)

....as you can see, I set the avatar speed to be 1000X normal. I had forgotten this and thus did not understand why they were blinking so fast.

I tested my hypothesis by setting speed back to normal and using the blink paramaters from Jeff's original post. Sure enough, the blinking looked natural (though I had to watch the avatar move all around the place while acting out action #32).
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
PPT idle time? mjabon Precision Position Tracker (PPT) 2 08-26-2009 12:35 PM
Question about input from virtual keyboard. yyang Vizard 4 12-23-2008 01:25 PM
Vizard as a social virtual world engine Gerard Vizard 3 02-14-2008 03:22 PM
timer question Elittdogg Vizard 5 10-10-2007 03:49 PM
General Questions about Vizard: World Viz dav Vizard 5 08-28-2006 04:44 PM


All times are GMT -7. The time now is 10:56 PM.


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