Loading...
Logo
Processing Forum

Processing 2.0a - Render hints

in General Discussion  •  Other  •  1 year ago  
Firstly apologies for all the alpha questions, I know I should just wait for the documentation and a final release but I've started something and i'm now too far in to turn back because my deadline is tomorrow.

None of the old hints seem to work in P3D/GL mode with v2 alpha. Can anyone give me a an idea of how I can use them? I'm looking to gain a bit of extra performance at the expense of sorting and smoothing.

Thanks in advance.

Dave

Calx | http://calx.co.uk

Replies(3)

i may be wrong but isn't the default that those things are disabled? that if you don't give it a hint you get the rough, unsorted version. perhaps it's different in 2.0.
Oh, I thought it was completely the other way around. Thanks for your help

Calx | http://calx.co.uk
well, i was going on the fact that the constants are called things like ENABLE_OPENGL_4X_SMOOTH and ENABLE_DEPTH_SORT which implies that the default is that these things are disabled.

however, i hadn't seen:
hint(DISABLE_OPENGL_2X_SMOOTH) - In Processing 1.0, Processing always enables 2x smoothing when the OpenGL renderer is used.

so it appears that 2x anti-aliasing is used by default.

http://processing.org/reference/hint_.html

is there documentation / code for version 2 anywhere? i haven't switched yet...