Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Approach for reusing a mesh

$
0
0

@mikechambers wrote:

I need to draw a lot of circles (whose initial size is set dynamically) on the screen and move them around. At any one time, some of the circles may not be moving.

Right now, I just draw each circle in my draw method, but its seems like I could somehow just reuse / copy a single circle, and then only redraw the ones which moved.

Looking at the docs, it looks like I could draw the circles to a ofVboMesh, and then just update the vertices for each circle when it moves.

Is that the best approach? Is there an easier way to move the circles (and not have to do it vertex by vertex)?

Basically, I could just use a nudge in the direction of what the right approach is (with an eye to performance).

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles