I am drawing meshes fairly straightforwardly, but they are drawing without antialiasing.
I set up the window like this
ofGLWindowSettings settings; settings.setGLVersion(3, 2); ofCreateWindow(settings);
I’m constructing and drawing my meshes like this
// create the mesh ofVboMesh mesh; mesh.enableColors(); mesh.clear(); // add a bunch of vertices mesh.addVertex(vector1); mesh.addVertex(vector2); //etc. mesh.addColor(color); mesh.setMode(OF_PRIMITIVE_LINE_STRIP_ADJACENCY); mesh.draw();
I’ve also tried drawing to an FBO, so I can force multisampling
allocated like this
_fbo.allocate(width, height, GL_RGBA, 4);
and then drawing like this
_fbo.start(); ofClear(25, 25, 30, 255); mesh.draw(); _fbo.end(); _fbo.draw(0,0);
And this is still pixellated.
Am I doing anything obvious wrong?
What should I be doing to draw meshes with antialiasing?