Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

Best way to draw an array of objects

$
0
0

OK.

Well all those vbo, fbo, shaders and other opengl related things are still quite fuzzy to me. I must confess that i don't really understand your example wink
But i will dig into it.

Note that every circle can have its own color.

So basically, what are the major steps ?

What i understand is :
- create points
- add points to a vbo
- pass the vbo to a shader
- compute position and draw the circle in the vertex shader (pass mouse position to the shader for the interactivity)
- color is applied by a fragment shader ?

am i right ?

here is the result so far (without using shader or vbo :


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>