Author Topic: caustic experiments with photographic lenses  (Read 10775 times)

2012-11-08, 00:44:04

damjan

  • Active Users
  • **
  • Posts: 13
    • View Profile
First - i have to say - i just downloaded corona some hours ago, and i have to say this is the most promising renderer i saw in many years! (and i saw a lot)
I dug out some old maxwell scene i did for a presentation a while back (explaining the working principle of a camera lens)

The images you see here are not so easy to grasp - its basically a rebuild of an old cook triplet camera
I got all the info from google patents - ior, lens radius etc.

the results are perfect compared to vray and maxwell - and extremely fast!
maxwell was also good, but 10 times slower.. vray didnt reproduce anything close to this (even with gpu)

20 minutes each, and one i had to flip - like in a real camera ;)
(no postprod - straight from the engine)

2012-11-08, 01:12:33
Reply #1

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
Wow, that is awesome!

We tried something similar with Rawalanche some time ago, but we've only gotten to single-lens camera: https://www.facebook.com/media/set/?set=a.149696258503558.34042.149376231868894&type=3

Can you post pictures of the entire scene setup (wireframe)? And how did you get the first image? Is the camera looking directly through the lens, or at the projection plane?
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2012-11-08, 01:35:51
Reply #2

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
And one last thing, would you be willing to share the scene? I would love to use it for testing new GI algorithms ;)
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2012-11-08, 01:39:20
Reply #3

damjan

  • Active Users
  • **
  • Posts: 13
    • View Profile
camera is looking at the projection plane
i did at the time comparisons between spherical/aspherical and cooke triplet
attached is a wireframe and an old side from the presentation (its maxwell, and took ages to render)
the problem with aspherical lenses was the function to generate them was, lets say not so hard to get, but once i had the patent papers in front of me, i gave up on it
btw - all the curves were created in rhino and meshed in max - just for precision - this whole setup is rather fragile when it comes to mesh resolution and small errors multiply as the light propagates trough the lenses

2012-11-08, 01:42:47
Reply #4

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
yes, I tried to model a parabolic lens, but I scratched it, because I would have to program it as primitive into 3dsmax to get good precision :D
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2012-11-08, 01:43:47
Reply #5

damjan

  • Active Users
  • **
  • Posts: 13
    • View Profile
for sure! its just - the scene is a total mess as is went from originally maxwell, to vray, to corona - and the layers are a mess too - you will find other lenses in there as layers (some fancy wide angle - but i lost the patent pdf, so no ior numbers :/

2012-11-08, 01:56:21
Reply #6

damjan

  • Active Users
  • **
  • Posts: 13
    • View Profile
and just in case:
http://www.google.com/patents?id=fqxnAAAAEBAJ&zoom=4&dq=3359057&pg=PA1#v=onepage&q&f=false
here is the cooke triplet data

and here the wide angle one:
http://www.google.com/patents?id=NY87AAAAEBAJ&zoom=4&dq=3731989&pg=PA1#v=onepage&q=3731989&f=false
there are 2 different ones, i dont remember which one i built - there are good indicators in the pdf, but i scaled the whole thing in max - so you would have to check relative numbers to find the right ior set..

2012-11-08, 16:05:43
Reply #7

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12781
  • Marcin
    • View Profile
Corona obscura! :O

This is amazing! I remember doing some tests like casting caustics of an object through a little lens in Brazil and it worked, but never something so complex! Great to see. I wonder how Vray's path tracing would handle such scene...
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2012-11-08, 16:15:05
Reply #8

Chakib

  • Active Users
  • **
  • Posts: 787
  • Corona Omnomnomer !
    • View Profile


2012-11-08, 16:48:09
Reply #10

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12781
  • Marcin
    • View Profile
Yeah, I know, I came here via facebook. But Corona Obscura sounds cool. ;)
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2012-11-08, 19:17:00
Reply #11

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
oh, corona obscura, not camera obscura ;) Sorry, I need some sleep ;)
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2012-11-08, 20:07:44
Reply #12

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
impressive O_o
I wouldn't even have tried such a thing :D Is there some "practical use" or is it just a proof of coronas awesomeness ;)
Any sufficiently advanced bug is indistinguishable from a feature.

2012-11-09, 02:20:49
Reply #13

Javadevil

  • Active Users
  • **
  • Posts: 399
    • View Profile

2012-11-09, 02:26:59
Reply #14

damjan

  • Active Users
  • **
  • Posts: 13
    • View Profile
had some "practical use" ;)
a while ago we had to do a short lecture on camera lenses - specifically why there are so many in one lens, and not just one..
after some research i had the idea why not try to render it (with maxwell at the time)
since then this became a good stress test for render engines to me.
and corona did the best job so far
lens flares i will try next ;)