Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

Re : How to port old PGraphicsOpenGL code to Processing 2 alpha - Additive Blending

$
0
0
ok, my guess is that this is an OpenGL zNear and zFar clipping plane issue in the processing code... http://www.opengl.org/archives/resources/faq/technical/depthbuffer.htm   especially because when i just translate my particles in void render using

  1. translate(loc.x, loc.y);
i don't see the image border artifact in the image above.  i'm guessing this may fit into the "this is not supported, in the sense that if you get weird problems with a GL-based sketch that uses this method, you're on your own" category... a hackish work around is to fake the 3D by still calculating z values, but instead of translating in z, just have that z value affect the visuals (i.e. diameter * z )...

Viewing all articles
Browse latest Browse all 1768

Trending Articles