Make glasses actually refract light?

The eyewear I got has window glass, so it does not do anything - if I wanted to have proper lense behaviour, so glasses make someone eyes look bigger - is there a method/product/shader..?

Comments

  • Richard HaseltineRichard Haseltine Posts: 102,718

    You could, even with a single player, adjust the Index of Refraction on glass surface through the Surfaces pane's Editor tab.

  • MattymanxMattymanx Posts: 6,954
    edited June 2021

    For Iray, on the surface tab, the setting you are looking for is "Refraction Weight".  Set it to 1.  Above RW is "Refraction Index" and you can look up the refraction index of a substance or gemstone on the internet and input the value under Refraction Index to get a more realistic look.

    Post edited by Mattymanx on
  • NorthOf45NorthOf45 Posts: 5,551

    If the lens is modeled as a volume, make sure "Thin-Walled" is OFF. For the light passing through to project properly, set the Caustic Sampler ON (Render Settings).

  • SpaciousSpacious Posts: 481

    Since iray is a Physically Based Renderer in order to achieve the effect you are looking for the lenses would have to be modelled in the correct shapes to refract light the way they would in real life.  Reading glasses make someone's eyes look bigger because they are basically magnifying glasses, thicker in the center than on the edges.  Regular glasses, the type that people wear all the time, will make a persons eyes look smaller, and are thinner in the center than the edges.

    I've experimanted extensively with modelling various lenses in an attempt to get "real" lens flare effects.  I still have not acheived that, but I learned a lot about lenses along the way.  If you're going to try to model a lens and have it look nice in DAZ you're going to need a lot of subdivisions.

  • Ghosty12Ghosty12 Posts: 2,065
    edited June 2021

    This test image is using a set of freebie glasses I got from ShareCG. I tweaked the lenses in Hexagon to make them a bit thicker and then used the Daz supplied glass iray shader set with a refraction of 1.5.. As you can see the start of the coke bottle effect in the lenses..  I did find that turning on thin walled negated the refractive effects of the lenses..

    Glasses.jpg
    500 x 1000 - 384K
    Post edited by Ghosty12 on
  • MelissaGTMelissaGT Posts: 2,611

    As a wearer of glasses, just wanted to throw it out there that they don't necessarily make eyes look bigger. Depending on if the wearer is nearsighted or farsighted, the lenses could make the eyes looks smaller. 

  • memcneil70memcneil70 Posts: 4,313

    And to add to @melissastjames warning, you can also have someone who is nearsighted in one eye and farsighted in the other, and needs bi-focals, or tri-focals in my case. It makes a challenge to get proper glasses and when I have them on and look in a mirror, my eyes look normal. Neither large nor small.

  • NorthOf45NorthOf45 Posts: 5,551

    It's all about curvature on both sides of the lens. You can get a basic magnifying glass by scaling a sphere along one axis, but for more sophisticated shapes you would need to either model it accordingly, or use De-Formers or maybe a Push Modifier with weight-mapped influence to make the curve you want. Each hemisphere would get its own modifier, so that you can make each side as convex or concave as you like.

  • pixelquackpixelquack Posts: 288

    Plenty good answers, thanks all.

  • memcneil70 said:

    And to add to @melissastjames warning, you can also have someone who is nearsighted in one eye and farsighted in the other, and needs bi-focals, or tri-focals in my case. It makes a challenge to get proper glasses and when I have them on and look in a mirror, my eyes look normal. Neither large nor small.

    I have monocular vision, with one very nearsighted eye and one close to normal vision. Without correction, the nearsighted eye does  all the close vision and the other does distant vision. So each lens (for driving glasses) are very different, enough the nearsighted eye appears just slightly smaller.

    My reading glasses (bi- and tri-focals don't work for me) have a very different prescription from my driving glasses. Not only are the individual reading lenses different prescriptions, they are very odd/rare, especially paired up. So odd that the doctor wrote "These are correct!" on the prescription. LOL

Sign In or Register to comment.