animation not smooth

kundi's icon

Hello,

I'm trying to do some animations in Jitter, but the problem I'm having is that what renders in the window is not rendering smoothly (and my computer should be fast enough). I tried changing the metro to 1 or a bigger number, but it doesn't help. It seems like its stopping in very small intervals.

Why is that and how to fix it so that animation will be smooth?

I'm attaching my setup

Thank you!

Screen-Shot-2016-12-17-at-15.00.00.png
png
matmat's icon

Hi,
The first thing is to setup your render like in "jit.gl.render.help" or better you could use "jit.world" .
After that if you still have problems, you could post a patch ;)

Pis Pas's icon

Hard to say without an example but I guess you have some banding issues in that gradient.
You can avoid that by adding a tiny bit of 1d noise. Havea look at jit.gl.pix.

kundi's icon

I'm sharing the example. Does that help?

gradient-animation.maxpat
Max Patch
Pis Pas's icon

Like Matmat is suggesting, you should have a look at how a render context is managed in Jitter (tutorials).
And then you might want to play around with jit.gl.pix for drawing that gradient in a efficient way...

Rob Ramirez's icon

use jit.world:

Max Patch
Copy patch and select New From Clipboard in Max.

kundi's icon

Thanks for this, but I'm not quite sure if I understand it.

The animation (counter) is not working with the patch that you posted. Why is the metro replaced with git.world?

Thanks for your help

kundi's icon

I had to restart max msp and now it seems to work. My question is: how can I affect the speed of animation? Right now the counter is being banged by jit.world and I have no idea how to affect it to make the animation faster or slower?

Thank you!

Pedro Santos's icon

Use the "fps" message to jit.world to define the rendering speed.

Rob Ramirez's icon

hi Kundi,
i strongly recommend you check out the jit.mo project from the Package Manager, for these types of animations.
https://cycling74.com/forums/announcing-jit-mo-package/

Max Patch
Copy patch and select New From Clipboard in Max.