Hey there!
ive a question about instanced in openGL. i want to do instanced drawing in post to getting better perfomance. right now i
ve a system, a very tipical particle system:
vector<Obj*>objects;
class Obj{
public:
Obj(float x, float y, float z, int radio, int vertexCount);
ofSpherePrimitive sphere;
bool visible;
void display();
};
as you can see, i keep track every obj position, size, radio, and vertexCount. also, i ve a boolean value to determine if the object are drawing or not.
how can i port this system into a “instanced style” ?
its possible to draw geometry instanced but also keep track every value individually?
what do you think?