WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-04-2008, 12:06 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Add the following code to the end of your script:
Code:
lc1.lastUpdateTime = 0.0
def CheckUpdateTime():
	t = lc1.getLastUpdateTime()
	if t == lc1.lastUpdateTime:
		print 'Did not receive new update from server on frame',viz.getFrameNumber()
	else:
		lc1.lastUpdateTime = t
vizact.ontimer(0,CheckUpdateTime)
It will print out a message if the character did not receive an update from the server during that frame. If you are getting a lot of these message, then packets are being dropped.

Also, make sure that MotionBuilder is able to sustain the requested stream rate. When you go to the LiveCharacters device screen it will display the actual stream rate underneath the Online checkbox.

Also, what hardware is MotionBuilder connecting to? In reality, there is no point in setting the stream rate higher than the rate of the hardware device. If the hardware is generating new data at under 60Hz, then setting the LiveCharacters stream rate higher is not going to make any improvements at all. You will just end up sending the same data multiple times. So make sure your input device is generating new data at 60Hz.
Reply With Quote
  #2  
Old 06-04-2008, 12:15 PM
Frank Verberne Frank Verberne is offline
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 148
Packages are indeed being dropped:
Code:
Did not receive new update from server on frame 2
Did not receive new update from server on frame 21
Did not receive new update from server on frame 40
Did not receive new update from server on frame 57
Did not receive new update from server on frame 63
Did not receive new update from server on frame 69
Did not receive new update from server on frame 103
Did not receive new update from server on frame 111
Did not receive new update from server on frame 117
Did not receive new update from server on frame 122
Did not receive new update from server on frame 140
Did not receive new update from server on frame 143
Did not receive new update from server on frame 148
Did not receive new update from server on frame 156
Did not receive new update from server on frame 175
Did not receive new update from server on frame 187
Did not receive new update from server on frame 194
Did not receive new update from server on frame 225
Did not receive new update from server on frame 233
Did not receive new update from server on frame 247
Did not receive new update from server on frame 260
Did not receive new update from server on frame 275
MotionBuilder is able to sustain the streamrate, so that's not the problem. The motionbuilder computer connects via the dtrack listener plugin to the dtrack computer. It also has a setting of framerate and it's set on 60 Hz. Dtrack itself is also set on 60 Hz and the program receives it's data from 16 IR ARTtrack camera's. I don't know if you have enough technical specifications now, so please let me know what else you have to know.

Yours, Frank
Reply With Quote
  #3  
Old 06-04-2008, 12:42 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
In general, you would want the hardware to generate data at twice the rate of the client framerate. When the hardware and client are running at the same rate, it is common to run into timing issues where the client will miss new frames. This is especially true in this case, since the data is going through MotionBuilder, then over the network, which is going to add even more delays. There is no easy solution to this other than having hardware that can generate data at a faster rate. Streaming the LiveCharacter data at more than 60Hz will not do anything at this point.
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
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 01:56 AM.


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