View Single Post
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