We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm relatively new to Processing, and as a "for fun" project I've been working on a 3D game. In this game, I have objects, shapes, using graphics that modify images for their textures. What I am trying to do is as the camera gets farther away from a shape, the shape becomes more blurred. The distance calculation is not what is giving me trouble, but rather getting the shape to become clearer after coming back to it. This could be something very simple I am just not seeing, but nonetheless I am not seeing it.
I have tried using the preset BLUR in filter(), and in draw() just changing the factor(ex: image.filter(BLUR,factor)), but that lags things up on my comp. I have tried using the blur.glsl from the examples and that is much faster, but I cant figure out how to reset the filter or remove it after it has been applied to the image, since you are unable to set a factor when using a custom shader.
Any help is appreciated. Thank you.