Drawing simple 2d-objects

May 10, 2006 at 11:18pm

Drawing simple 2d-objects

Hi.
I’ve got a video input stream. I approximated this video stream and saved the average colour values for each area in a matrix. Based on this matrix I’d like to draw and simply animate some objects, but I don’t know how.

First of all: which functions are useful for drawing? Should I use the graphic window and the oval//ring/rect/frame objects? Or is this normally done with jit.gl… (OpenGL)? I found those two options yet, but I’m not sure what to use.

Furthermore I didn’t find an example/a tutorial, which would teach me how to read values out of a matrix and use them for drawing simple 2d-objects in the next step. Can somebody please give me an advice how that works, where to find information about this or what I should search for?

Thanks in advance,
Nic

#25913
May 13, 2006 at 9:06am

Hello Nic,

> I’d like to draw and simply animate some objects, but I don’t know how.

me either. if you tell us how you want them to animate, someone could tell
you how to do it.

> //ring/rect/frame objects? Or is this normally done with jit.gl…
> (OpenGL)? I found those two options yet, but I’m not sure what to use.

yes, those are two main options.

what you would generally do is to take values from jitter matrix(see
jit.iter & jit.spill, or getcell message to jit.matrix), adjust them to what
your drawing commands need, and send them to relevant drawing objects.

please go through all jitter tutorials(again?) and examples, maybe an idea
would pop-up.

> where to find information about this or what I should search for?

please go through all jitter tutorials(again?) and examples, maybe an idea
would pop-up.

best,
nesa

#76892

You must be logged in to reply to this topic.