WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-04-2008, 11:16 AM
Frank Verberne Frank Verberne is offline
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 148
Linking problems with Live Character

Hi all,

I'm encountering a strange problem with linking the mainview to a bone of an animated avatar.

Whenever I use an avatar that's being animated by the Live Character's plugin for MotionBuilder and I link viz.MainView to one of it's bones ('bip01 Head') with the viz.link() function, the result is a choppy mainview. When I link an object ('box.wrl') to the same bone (without linking the mainview to any bone), the avatar seems to be moving smoothly (or the choppyness is only noticeable when the mainview is linked to one of the bones).

The framerate is not a problem, and the stream rate in MotionBuilder (Live Characters plugin) is stable and high enough (set it to 250). However, it seems that the avatar is not updated fast enough when the mainview is linked to one of it's bones (the framerate doesn't drop, but the whole scene is choppy). I already tried adjusting the streamrate of the Live Character plugin, but that didn't help. I also tried linking the mainview to other bones or to use an other avatar, but the problems still exists.

How can I let the headbone move smoothly with the plugin and at the same time link viz.MainView to it?

For the record, I want participants to be able to literally see through the eyes of an animated avatar (they animate it themselves). I'm also working on another solution by linking the mainview to a sensor and then pretranslate that link to just before the eyes. However, that solution is not flawless, and the link-function would be the perfect solution if only the view wasn't choppy.

The code below causes the problem:
Code:
import viz
import vizmocap

viz.go( viz.HMD | viz.FULLSCREEN | viz.STEREO )
gallery = viz.add('gallery.ive')
avatar = viz.add('vcc_male.cfg')
lc1 = vizmocap.LiveCharacter('192.168.2.103',8050,model=avatar)
viz.eyeheight(0)
bone = avatar.getBone('Bip01 Head')
viz.link(bone, viz.MainView)

Last edited by Frank Verberne; 06-04-2008 at 11:19 AM.
Reply With Quote
 

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
Live Characters plugin Frank Verberne Vizard 7 03-01-2012 03:23 AM
Locking every bone of a character Frank Verberne Vizard 2 03-17-2008 11:21 AM
problems with webcam plug-in v-clizzin Plug-in development 2 01-25-2008 04:06 PM
Displaying live video in Vizard? Deltcho Vizard 2 01-04-2008 12:05 PM
Problems with lighting in 2.0 murm Vizard 6 04-21-2004 10:59 AM


All times are GMT -7. The time now is 08:30 PM.


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