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:
Code:
global tracer 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?:confused: 2) Why are there seemingly random gaps in adding vertices to the line? Any ideas? Thanks!:D |
Try registering a callback function using vizact.ontimer that gets called on a regular interval. Then within the function draw the vertex.
|
All times are GMT -7. The time now is 07:55 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC