Model smartphone camera #628
Replies: 1 comment
|
Good question. My suggestion: skip the pinhole stage and start directly with a real lens system, since Optiland is a sequential ray-tracing tool, not a rendering engine, so a pinhole is really just a system with a tiny stop and no refracting power, which does not teach you much extra along the way. For focus: place your image surface, then call optic.updater.image_solve() to set its position to the paraxial focus for the current object distance, that is your infinity focus case. For fixed-focus behavior (like a smartphone lens that does not refocus per object distance), just do not re-solve: fix the image-plane thickness and check performance across your object-distance range instead, which is exactly the real fixed-focus tradeoff. If you do want to model active refocusing, re-run image_solve() (or optimize the image distance) per object distance and compare. Happy to help further once you have a starting prescription. |
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone,
I’m trying to model a simple smartphone camera and wanted to build it up step by step.
My idea is to start with a pinhole camera model, then replace it with a lens system, and eventually explore different focusing cases like fixed focus and infinity focus (typical smartphone behavior).
I’m not sure what the best workflow is in Optiland:
Start from a pinhole and upgrade step-by-step to lenses?
Or begin directly with a lens system and approximate the pinhole case?
How is focus usually handled (sensor position vs object distance vs optimization)?
Any advice or examples of similar setups would be really helpful.
Thanks!
All reactions