WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 08-13-2015, 12:26 PM
willpower2727 willpower2727 is offline
Join Date: Feb 2015
Posts: 39
Question On-the-fly line slow update

I'm streaming x-y-z coordinates from a camera system (120 Hz) and using them to update the position of a small sphere (like a cursor for a mouse). I am attempting to show a trace history of where the cursor has been by using onthefly line vertex like this:

global tracer
tracer = viz.endLayer(viz.WORLD,viz.MainScene)

while TRUE:#while data is streaming in...
What I observe is the cursor keeps up with incoming data (it keeps up in real time). However the line exhibits periodic gaps of 2-4 seconds of missing data but the rest of the time it works well. I've tried two things to remedy:

1. I hoped that tracer.dynamic() would help, the documentation for this function has no elaboration so I don't even know what it does.

2. I've tried to reduce the sampling frequency down to 60 Hz, no change in behavior.

The real questions I have then are

1) Why can the sphere change positions quickly but adding line vertices cannot?

2) Why are there seemingly random gaps in adding vertices to the line? Any ideas?


Last edited by willpower2727; 08-13-2015 at 12:34 PM.
Reply With Quote
Old 08-19-2015, 01:06 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,471
Try registering a callback function using vizact.ontimer that gets called on a regular interval. Then within the function draw the vertex.
Reply With Quote

dynamic, line, on-the-fly, vertex

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
update sequence animation speed vserchi Vizard 1 03-17-2015 03:33 AM
what is causing (a) slow frame rate and (b) spontaneous NVIDIA stereo off billjarrold Vizard 0 07-11-2012 02:25 PM
how to invoke command line question billjarrold Vizard 2 01-11-2010 09:51 AM
Draw line with a triangle at the end Chrissy2009 Vizard 9 08-24-2009 12:12 PM
Linking problems with Live Character Frank Verberne Vizard 5 06-04-2008 12:42 PM

All times are GMT -7. The time now is 05:36 PM.

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