When I change the hardcoded focal length here it doesn't seem to actually affect the optical properties. I've been importing all the meshes into Cinema 4D to render the caustics with redshift and they are always in focus at .2 meters. I managed to change the artifact size with no problems, but adjusting the focal length doesn't seem to work for me. I also read through this post and at one point he mentions a similar thing.
I appreciate all the work you put in on this. I'm not a programmer whatsoever, but it's been cool to play around with regardless and I'd be happy to share the animation I'm working on when I finish it.
Edit: I managed to adjust the focal length by just proportionally scaling the points on the front face along the Z axis myself in Cinema 4D. It's actually faster to do it this way rather than generating a brand new mesh every time. Either way thanks again for putting this project up.
When I change the hardcoded focal length here it doesn't seem to actually affect the optical properties. I've been importing all the meshes into Cinema 4D to render the caustics with redshift and they are always in focus at .2 meters. I managed to change the artifact size with no problems, but adjusting the focal length doesn't seem to work for me. I also read through this post and at one point he mentions a similar thing.
I appreciate all the work you put in on this. I'm not a programmer whatsoever, but it's been cool to play around with regardless and I'd be happy to share the animation I'm working on when I finish it.
Edit: I managed to adjust the focal length by just proportionally scaling the points on the front face along the Z axis myself in Cinema 4D. It's actually faster to do it this way rather than generating a brand new mesh every time. Either way thanks again for putting this project up.