Quantcast
Viewing all articles
Browse latest Browse all 40524

Best way to draw an array of objects

Also can you expand on the following quote ...

depending on the shape you have subdividing it in triangles will require a different process, in the case of a circle, for example, always passing trough the center every 2 vertices, on a square by drawing the first half and then the second... if you rely on the polyline you'll need to know which shape every particle contains in order to convert it to a mesh later. if every particle converts it's polyline into an ofMesh you can just copy the mesh without having to know what it contains.

in some systems it might help setting the vbo mesh usage to:

    vboMesh.setUsage(GL_DYNAMIC_DRAW);

or even

    vboMesh.setUsage(GL_STREAM_DRAW);

Viewing all articles
Browse latest Browse all 40524

Trending Articles