I’m trying to do some draws in openframeworks, But i can’t get neat/smoothed graphics especially in the strokes
I’m already using:
ofEnableSmoothing();
ofSetCircleResolution(48);
With this the graphics are better but not as good as i want. Please see the PRINTSCREEN in the attachment.
So, how can i get better super smoothed graphics?
yes there is really one thing I just thought of:
Maybe i am wrong, but it looks like you’re drawing the filling of the circles after you draw the outlines. Drawing it the other way around drastically improves the quality of the circles.
Try it in this order:
ofSetColor(0);
ofFill();
ofCircle( x, y, 250 );
ofSetColor(0, 50+color, 20);
ofNoFill();
ofCircle( x, y, 250 );
Insted of
ofSetColor(0, 50+color, 20);
ofNoFill();
ofCircle( x, y, 250 );
ofSetColor(0);
ofFill();
ofCircle( x, y, 250 );
You can see the difference at the attached images.
I’m doing a exercise here playing with circles but I’m having some issues withe the resolution of the circles. These are simple ofDrawCircle() with ofNoFill(), nothing else. On the example I tried to increase the thickness of the stroke to show you guys what is happening. Basically I always have a a “broken” circle showing those 4 gaps around.
I already tried many different things like ofSetCircleResolution, window.setGlutDisplayString, ofSetCircleResolution, etc but nothing seems to work.
Solved! I just modified the central circle to still have the other ones to compare with. Check the difference.
For the central one, instead of using a normal circle, I use the suggested method of combining two arcs.
with the //setup and //draw comments i meant that, that code should go in the setup and draw functions, otherwise it’ll add a circle every frame and because of how path works whenever you draw on top of something it makes a “hole” in the previous drawing. you just need to create the shape once in setup and then draw it in the draw function