We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello,
Using P5 2.1.1, I used to setup antialising with smooth(32).. However, as soon as I make a direct OpenGL call (like glTranslate3f, etc..), the sketch refuses to run and antialiasing is bad..
Though, using smooth(); alone lets the sketch work but full antialiasing is not on..
My question is how (P5 code and/or OpenGL code) to achieve full antialiasing while making direct OpenGL call in the sketch ?
Answers
@codeanticode, @gotoloop, @poersch, any idea ?
smooth() sets an antialiased opengl context where your low-level opengl calls should draw to as well, so I'm surprised that you don't get antialiasing. Maybe if you post some code would be easier to find the problem.
Sure..
Here is an example code :
When I try to run this, I get a
NullPointerException
with the following call stack dump :When I use
smooth()
, everything runs fine, but as soon as I writesmooth(32)
and use OpenGL code afterwards, I get this exception.Any idea where it may come from ?