LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Avoid flicker in 3D picture control

Hi all,

I'm trying to implement some animation in the 3D picture control. For this, I change the transformations of the objects in the scene and then redisplay it by wiring the scene to the scene window, all inside a for loop. This works fine, but creates flicker; I even see intermediate steps of those several transformations I perform, although I wire the result to the scene window only at the end. Is there any possibilty to disable the redrawing of the scene, until all transformations have taken place, reenabling it after that?

What I do pretty much resembles the solar system example. There, I do see much less flicker. But I have more objects...

Best regards
Matthias
Message 1 of 4
(3,303 Views)
Replying to myself,

I solved it. I was just too fast with the next transformation; the redraw was not complete, when the next transformation came up. So I inserted a proper delay (for an animation at a fixed rate probably not the worst idea, generally speaking), and everything is fine.

Should I reward myself some stars?

Regards to myself,
Matthias

Message Edited by matthias.richwin on 07-10-2007 04:42 PM

Message 2 of 4
(3,301 Views)
There I gave you your stars.  I like to see people that answer their own questions, and then are nice enough to share the answer with the board.
Message 3 of 4
(3,290 Views)
Thanks a lot!


Regards
Matthias
0 Kudos
Message 4 of 4
(3,278 Views)