Loading...
Logo
Processing Forum
Hello,

im trying to smooth my graphics in the processing 2.0a5 version for JAVASCRIPT and STANDARD.
and this change for the JAVASCRIPT version did help

gl = canvas.getContext(ctxNames[i]);

im wondering if there are more options of smoothing
the STANDARD version looks worse than the WEB version. smooth() doesnt do anything and the hint(ENABLE_OPENGL_4X_SMOOTH); throws an error
"cannot find anything named "ENABLE_OPENGL_4X_SMOOTH"

i basically draw triangles in 3d that rotate. im using a orthographic projection.
for some reasons there are some angles where the shapes are perfectly smooth. different angles of the triangles that result in the same 2D shape are very edgy …
would be interesting to understand why?

im happy about tips and suggestions

thanks

Replies(2)

In the standard mode, use smooth(level), with level equal to the anti-aliasing level you want to use (2, 4, 8, etc, as long as it is supported by the hardware).
Hey, thanks!
I guess the problem with the sharp positions is just that some lines are in perfect 45°.
Those are quite nice, everything else kinda rough.
But thats probably the way it is.