![]() |
#1
|
|||
|
|||
![]()
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 viz.startLayer(viz.LINE_STRIP) viz.vertexColor(viz.YELLOW) tracer = viz.endLayer(viz.WORLD,viz.MainScene) tracer.dynamic() while TRUE:#while data is streaming in... cursor.setPosition(X,Y,0.98) tracer.addVertex(X,Y,0.98) end 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? Thanks! ![]() Last edited by willpower2727; 08-13-2015 at 11:34 AM. |
Tags |
dynamic, line, on-the-fly, vertex |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
update sequence animation speed | vserchi | Vizard | 1 | 03-17-2015 02:33 AM |
what is causing (a) slow frame rate and (b) spontaneous NVIDIA stereo off | billjarrold | Vizard | 0 | 07-11-2012 01:25 PM |
how to invoke command line question | billjarrold | Vizard | 2 | 01-11-2010 08:51 AM |
Draw line with a triangle at the end | Chrissy2009 | Vizard | 9 | 08-24-2009 11:12 AM |
Linking problems with Live Character | Frank Verberne | Vizard | 5 | 06-04-2008 11:42 AM |