Create Lenses with Iray!

Nyghtfall3DNyghtfall3D Posts: 813
edited September 2016 in The Commons

An artist on my board asked if lenses work in 3D, and if it's possible to create them with Iray.  No matter what they do with the Surface settings, the light never comes out refracted (caustics).  Several replies later, someone mentioned the Caustics sampler in the Optimization section of the Render tab.

DAZ once told me there are only very specific situations in which the Architectural or Caustics samplers would need to be used.  It seems lenses are one of them!

I made this with the following:

Plane Surface

Flattened Sphere:

X Scale: 10%
Y Scale: 110%
Z Scale: 123%

Iray Shader:

Glass - Solid - Clear
Refraction Index (IOR): 1.40

Photometric Spotlight:

Light Geometry: Disc
Area width: 30
Intensity: 200
Luminous Flux: 5000
Temperature: 6500

Environment Settings:

Dome and Scene
Draw Dome on
No Environment Map

Tone Mapping:

Exposure Value: 13
f/Stop: 5.6
Filim ISO: 300

Optimization: Architectural Sampler off, Caustics Sampler on

 

Post edited by Nyghtfall3D on

Comments

  • TabascoJackTabascoJack Posts: 865
    edited September 2016

    Great catch!

    I also found out a while back that light that is directly reflected off of a surface won't cast shadows onto other surfaces unless the caustic sampler is turned on.   See http://www.daz3d.com/forums/discussion/71599/daz-4-9-iray-reflections-stopped-working for more details on that.

    I think anything that involves light and transparent volumes (solid or liquid) or light that's involved with multiple reflections really benefits from caustics.

    Post edited by TabascoJack on
  • Oso3DOso3D Posts: 15,085

    I think I had trouble trying to do a 'bouncing lasers through fog' effect.

    Yeah, just tested. Even with caustics on, if you bounce a light off a mirror within a fog, the reflected light has no SSS effect.

  • TabascoJackTabascoJack Posts: 865
    edited September 2016

    For lasers, wouldn't you almost be better off with cylindrical emissives in the first place?  Or do you use spots with an incredibly tight focus?

     

    (Apologies for hijacking the thread)

    Post edited by TabascoJack on
  • This is really fun. I made a flashlight once and it worked pretty good. Im going to try your technique because I think itll be even better than what I did. Bookmarked.

  • Oso3DOso3D Posts: 15,085

    Tabasco: Well, given it doesn't work, definitely. ;)

    I also learned spotlights can go to a minimum of 3 degree spread before they just... stop working. Maybe 2.5? 2 or under is definitely out.

     

Sign In or Register to comment.