Little Addon for optical lenses etc.

General project and community related discussions and offtopic threads.
kintuX
Posts: 809
Joined: Wed Jan 10, 2018 2:37 am

Re: Little Addon for optical lenses etc.

Post by kintuX »

wasd wrote: Sun Mar 29, 2020 10:12 pm It seems nobody use winlens 3d basic. Google gives nothing beside dev site. Their manual also crappy.
This one?

Winlens Optical Design Software

And a Qioptiq Webinar from Apr 24, 2018 - Optical Design with WinLens3D @ YT
wasd
Posts: 319
Joined: Tue Apr 24, 2018 7:20 pm

Re: Little Addon for optical lenses etc.

Post by wasd »

kintuX wrote: Sun Mar 29, 2020 11:46 pm
wasd wrote: Sun Mar 29, 2020 10:12 pm It seems nobody use winlens 3d basic. Google gives nothing beside dev site. Their manual also crappy.
This one?

Winlens Optical Design Software

And a Qioptiq Webinar from Apr 24, 2018 - Optical Design with WinLens3D @ YT
I mean, the 99% of manual reading cases is when something doesn't work or isn't work as expected, so you open manual to see what's wrong. Good manual cover those matters. Bad manual has nothing about difficulties, like obsolete glasses in winlens. Like, I want to know how to use this "current blabla lens" button and there's nothing about it in the manual.

Thanks for link anyway.

p.s. this software is used by at least 3 users
CPU Bidir + Metropolis | Core i5-4570
wasd
Posts: 319
Joined: Tue Apr 24, 2018 7:20 pm

Re: Little Addon for optical lenses etc.

Post by wasd »

@CodeHD
1. Didn't you thought about adding feature of exporting preset?
2. There's lens which have different radii (I mean aperture) on its front and back sides, like the one at the middle on picture. There's no support for this in plugin, right?
len.jpg
CPU Bidir + Metropolis | Core i5-4570
CodeHD
Donor
Donor
Posts: 437
Joined: Tue Dec 11, 2018 12:38 pm
Location: Germany

Re: Little Addon for optical lenses etc.

Post by CodeHD »

wasd wrote: Mon Mar 30, 2020 12:05 am 1. Didn't you thought about adding feature of exporting preset?
Do you mean importing? I did think of that, but I would probably have to write my own file parsers, didn't find anything open source before.
Exporting would require the same of course, plus some other functionality in the addon.
wasd wrote: Mon Mar 30, 2020 12:05 am 2. There's lens which have different radii (I mean aperture) on its front and back sides, like the one at the middle on picture. There's no support for this in plugin, right?
No, not yet, but I put it on the todo-list.

I won't have much time to work on the addon in the next few weeks though, I've got to hand in my phd-thesis by the end of the month ;)
wasd
Posts: 319
Joined: Tue Apr 24, 2018 7:20 pm

Re: Little Addon for optical lenses etc.

Post by wasd »

CodeHD wrote: Mon Mar 30, 2020 12:14 pm
wasd wrote: Mon Mar 30, 2020 12:05 am 1. Didn't you thought about adding feature of exporting preset?
Do you mean importing? I did think of that, but I would probably have to write my own file parsers, didn't find anything open source before.
I mean just save lens parameters to file, so you don't have to manually enter them again if you want to tweak something.
I think this can be done with pickle.
CPU Bidir + Metropolis | Core i5-4570
wasd
Posts: 319
Joined: Tue Apr 24, 2018 7:20 pm

Re: Little Addon for optical lenses etc.

Post by wasd »

Made another tessar. Now I think I have some difficulty. All lenses in winlens library are 100 mm focal length. I want 35 mm.

Image
Image
Image

Scene is here:
https://drive.google.com/open?id=1i8pcR ... 8IUvHoNDIW
I removed ground and hdri though.
CPU Bidir + Metropolis | Core i5-4570
CodeHD
Donor
Donor
Posts: 437
Joined: Tue Dec 11, 2018 12:38 pm
Location: Germany

Re: Little Addon for optical lenses etc.

Post by CodeHD »

I like the images. Even though the fireflies con't clear quickly with this kind of setup, it has a nice old camera feeling to it :)

About the 100mm vs 35mm issue, that's not easy to solve unfortunately. You would need to find a 35-mm design somewhere else. Maybe there are other lens libraries around?
wasd
Posts: 319
Joined: Tue Apr 24, 2018 7:20 pm

Re: Little Addon for optical lenses etc.

Post by wasd »

After attempt to recreate lens from image from the internet and inventing working! but not focusing on infinity lens system, I've discovered this:
sca.png
Ther's button in edit tab which look like pair of red/blue eyes.
Just enter desired efl and get your new lens!
CPU Bidir + Metropolis | Core i5-4570
wasd
Posts: 319
Joined: Tue Apr 24, 2018 7:20 pm

Re: Little Addon for optical lenses etc.

Post by wasd »

Maybe it wasn't focusing issue. I think I've messed up photographic plate.
Anyway, here's downscaled 100 mm lens. I wanted it to be 28 mm, but it end up being not full-frame, so I think it's equivalent focal length is around 32 mm. I think it's nice anyway and it has sharp focus.
Image
Image
Image
https://drive.google.com/file/d/1vRAPzk ... _EKZk/view
CPU Bidir + Metropolis | Core i5-4570
wasd
Posts: 319
Joined: Tue Apr 24, 2018 7:20 pm

Re: Little Addon for optical lenses etc.

Post by wasd »

There's also some issues. The scene fits in 62 units cube.
Image
Camera is at the edge, and there's no focus.
Image
If I place camera near the world origin, roughly (0, 0, 0) – there is focus!
Image
CPU Bidir + Metropolis | Core i5-4570
Post Reply