We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello, i'm trying to recreate this effect: YouTube
However, processing isn't rendering any fog whatsoever. I've been staring at this code for hours now and I can't figure out why it won't work so would anyone else mind having a look and tinkering around with it?
Here is what I have:
Answers
@Xenthera
Yes, you are right. I spend some time with debug, cant say where the problem is. Sorry.
Tested it and it works in JOGL, it seems processing do some computation in between, can't tell what. I think some different things come together, so it fails.
gl.glFogi(GL_FOG_MODE, GL_EXP); is a 10year old OpenGL Api.
Use shaders. :)
I believe this is a duplicated post and this should be continue here: https://forum.processing.org/two/discussion/26077/can-you-use-glfog-in-p3d-mode#latest
Kf