Another lens test

Get feedback from others on your works in progress
ryjo
Posts: 68
Joined: Tue Jul 04, 2006 6:16 am
Location: Pluton

Another lens test

Post by ryjo » Sat Mar 31, 2007 8:16 am

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
Attachments
lens.PNG
Construction. Cooke Triplet, 50mm
lens.PNG (186.56 KiB) Viewed 4719 times
im1174946447.png
Result
im1174946447.png (480.8 KiB) Viewed 4719 times

User avatar
manitwo
Posts: 1029
Joined: Wed Jul 05, 2006 4:50 am
Location: Tirol - Austria

Post by manitwo » Sat Mar 31, 2007 9:04 am

unbelievable clean :shock: rendertime?
superb flare!

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Sat Mar 31, 2007 9:26 am

yeah... really clean...

looks like an inversed reflectioning ball, instead of a transparent ball...

ryjo
Posts: 68
Joined: Tue Jul 04, 2006 6:16 am
Location: Pluton

Post by ryjo » Sat Mar 31, 2007 9:55 am

This is the latest entry from the log:
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...
:roll:

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).

IanC
Posts: 147
Joined: Thu Aug 24, 2006 4:46 am

Post by IanC » Sat Mar 31, 2007 1:13 pm

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.

User avatar
zsouthboy
Posts: 1395
Joined: Fri Oct 13, 2006 5:12 am

Post by zsouthboy » Sat Mar 31, 2007 2:10 pm

Is it me, or could we(by which i mean exporter writers) automate this once someone gets the hang of it?

ryjo
Posts: 68
Joined: Tue Jul 04, 2006 6:16 am
Location: Pluton

Post by ryjo » Sat Mar 31, 2007 9:10 pm

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.
Hi,

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
view2.PNG
Spheres
view2.PNG (136.06 KiB) Viewed 4605 times
view.PNG
Profile of construction.
view.PNG (74.25 KiB) Viewed 4605 times

User avatar
dougal2
Developer
Posts: 2532
Joined: Wed Nov 15, 2006 8:17 am
Location: South London

Post by dougal2 » Sat Mar 31, 2007 11:26 pm

wow. your modelling must be somewhat more accurate than mine. :)

good work

ryjo
Posts: 68
Joined: Tue Jul 04, 2006 6:16 am
Location: Pluton

Post by ryjo » Mon Apr 02, 2007 12:11 am

dougal2 wrote:wow. your modelling must be somewhat more accurate than mine. :)

good work
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).

I have attached the sources.

Cheers
Attachments
lens.zip
Source Files
(3.84 MiB) Downloaded 256 times

8bstudio
Posts: 190
Joined: Mon Sep 11, 2006 9:22 pm

Post by 8bstudio » Mon Apr 02, 2007 8:34 pm

:(
Great....but I don't understand how you use your lens project instead the camera in Blender for example!! Can you explain me please!!

ryjo
Posts: 68
Joined: Tue Jul 04, 2006 6:16 am
Location: Pluton

Post by ryjo » Mon Apr 02, 2007 9:54 pm

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!!
Hi,

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.PNG
Layout
layout.PNG (3.47 KiB) Viewed 4374 times

8bstudio
Posts: 190
Joined: Mon Sep 11, 2006 9:22 pm

Post by 8bstudio » Mon Apr 02, 2007 10:04 pm

Thanks a lot "ryjo". I understand now and I'll try soon and surely!

ryjo
Posts: 68
Joined: Tue Jul 04, 2006 6:16 am
Location: Pluton

Post by ryjo » Wed Apr 04, 2007 6:49 am

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.
Attachments
im1175462355.png
Indigo Camera only (reference)
im1175462355.png (642.19 KiB) Viewed 4269 times
im1175541519.png
Simulated camera (same as earlier)
im1175541519.png (796.18 KiB) Viewed 4269 times

User avatar
Kram1032
Posts: 6649
Joined: Tue Jan 23, 2007 3:55 am
Location: Austria near Vienna

Post by Kram1032 » Wed Apr 04, 2007 6:55 am

looks good :D

Ricky
Posts: 34
Joined: Wed Nov 15, 2006 3:38 am

Post by Ricky » Wed Apr 04, 2007 7:47 am

That is really a great test...!

Post Reply
30 posts

Who is online

Users browsing this forum: Majestic-12 [Bot] and 35 guests