Another lens test
Another lens test
This is a test I did, inspired by another lens test in this forum. The light in the upper part is a flare.
Indigo 0.7t5
Indigo 0.7t5
- Attachments
-
- Construction. Cooke Triplet, 50mm
- lens.PNG (186.56 KiB) Viewed 5170 times
-
- Result
- im1174946447.png (480.8 KiB) Viewed 5170 times
This is the latest entry from the log:
But it looked pretty ok after about 10 h.
In order to set the focus I moved the image plane to 48.5 mm (it ought to be about 50 mm).
Time elapsed: 47h, 32m, 3s
Done 9932600000.00000 samples (18393.70370 samples per pixel)
58043.58855 samples / second (17.22843 micro-seconds / sample)
Shutting down...
But it looked pretty ok after about 10 h.
In order to set the focus I moved the image plane to 48.5 mm (it ought to be about 50 mm).
Hi,IanC wrote:Wow, that's amazing! I never managed to get a decent image out of it.
How hard was it to alight the lenses? I could never get the focal point right (I think) with simple lenses, so decided not to go for the cooke triplet.
The way I did it was to take an image of the design and then reconstruct based on this. I added circles that "overlapped" each lens surface, and then generated spheres from these circles. Using CSG i could make the three lens elements. Then I added an aperture behind the middle lens (where the aperture stop is). I exported the lenses (and a box) as obj and did the xml by hand.
Each lens is about 35000 vertices.
There is this program, zemax, and the demo has some example designs.
Edit: The theoretical focal length is 50 mm for this lens, but that came out blurry in the tests, so I adjusted the image plane to 48.5 mm, which is what is rendered.
- Attachments
-
- Spheres
- view2.PNG (136.06 KiB) Viewed 5056 times
-
- Profile of construction.
- view.PNG (74.25 KiB) Viewed 5056 times
Thanks! I think your result were as good, and my scene isn't very interesting. It would be nice to see a real scene 'shot' with a modeled camera and see if it looks different, or more realistic (as a photo).dougal2 wrote:wow. your modelling must be somewhat more accurate than mine.
good work
I have attached the sources.
Cheers
- Attachments
-
- lens.zip
- Source Files
- (3.84 MiB) Downloaded 258 times
Hi,8bstudio wrote:
Great....but I don't understand how you use your lens project instead the camera in Blender for example!! Can you explain me please!!
I don't use Blender, but I'll try to explain how to set up set camera: The indigo camera is placed inside the modeled camera and is pointed towards the rear end (opposite to the lens, at the front). The rear end must be diffuse white (1,1,1), all other walls in the box must be black (0,0,0). The lens will project the world outside the box onto the white screen. Set the FOV of the camera so it captures the screen (back of the box), but no the walls (they will just be black). See layout.
Hope this helps!
One additional comment: In order to focus the image plane (back) must be moved slightly. For focus at infinity move i 1.5 mm closer to the lens. For focus on something closer than that (say 5 metres), move even closer. This is trial and error process (even though there are some equations...)
- Attachments
-
- Layout
- layout.PNG (3.47 KiB) Viewed 4825 times
This is another result of using the simulated camera. The cleaner image is the reference pic (rendered with indigo camera only).
The "simulated camera" image is left/right-flipped.
Time: 20h / image.
The model is the sponza atrium.
The "simulated camera" image is left/right-flipped.
Time: 20h / image.
The model is the sponza atrium.
- Attachments
-
- Indigo Camera only (reference)
- im1175462355.png (642.19 KiB) Viewed 4720 times
-
- Simulated camera (same as earlier)
- im1175541519.png (796.18 KiB) Viewed 4720 times
Who is online
Users browsing this forum: No registered users and 132 guests