I’ve wondered, how physically correct is Cycles, and set a simple experiment. I’ve built a camera-obscura in blender, very basic type of camera. But it has optics at least. And this modelled optics worked!
The image below is rendered without any tricks or fakes. (I’ve added some freestyle outline to show the camera, because the scene is totally dark). My first real-word camera obscura worked much worse Аnd yes, I had too much free time today.
Yah, it’s already in the RC. And what it helps is to throw more rays in the portal direction, as if it was a light. In the case of a camera-obscura, the rays that come from the pinhole are the only we need.
With control of an aperture diameter and thickness you can get some very sharp focuses in the real world, Although every loss of roundness and flatness of the aperture is going to hinder that.