What is best trick to eliminate flicker in simulation animation?
- To: mathgroup at smc.vnet.net
- Subject: [mg127356] What is best trick to eliminate flicker in simulation animation?
- From: "Nasser M. Abbasi" <nma at 12000.org>
- Date: Fri, 20 Jul 2012 03:47:52 -0400 (EDT)
- Delivered-to: firstname.lastname@example.org
- Delivered-to: email@example.com
- Delivered-to: firstname.lastname@example.org
- Reply-to: nma at 12000.org
For sometime, I have been trying to find what is the best
way to improve the flicker I get when doing animation in
In other tools, one can do what is called double buffering
to help with this.
This problem shows up whenever I plot result of simulation.
I want to plot say an object as it moves, and I see that
annoying flicker (it might be called with some other names).
To see what I mean, I wrote this toy example, which is animation
of a spring pendulum that swings. If you look at the pendulum
itself, near the bottom end, you can see it is hard on the eye
to look at since it is not smooth as it moves.
One way to improve this is to slow the animation using
the menu buttons. But I'd like to run the animation fast,
and at the same time reduce this effect.
May be there are some hidden options one can use to help
with this problem? I am using 8.04 on windows.
g=9.8; m=30; f=1; L0=4; (*L0 is initial length of pendulum*)
k=m*(2*Pi*f)^2; (*spring stiffness*)
(* state space 4 equations, position, speed,angle, omega *)
(*solve numerially since non-linear, use 10 seconds*)
Prev by Date:
Re: Plotting: how does one reverse the time axis tick mark values?
Next by Date:
Re: Sending an interrupt to the frontend?
Previous by thread:
Re: No CCompiler found - MinGW-x64
Next by thread:
Re: What is best trick to eliminate flicker in simulation animation?