Iray Shaders - Glass by Dumor3D - Question

Ralf1958Ralf1958 Posts: 688
edited December 1969 in The Commons

Hi! I bought the shaders and I really like them. I have a question about them.
Since I have no Idea of what Fused Silica, Pyrex, Plexiglass, Lucite, Architectural Plain, Flint 29% Lead, Flint 55% Lead, Flint 71% Lead and Arsenic Trisufide are. (I only know what Plexiglass is)
Could please someone give a few simple examples of what Kind of glass should be used on what? For example which one for a Diamond? Or which one for a normal house window? Or car window? Or for a bottle?
Thank you! :-)

Comments

  • EsemwyEsemwy Posts: 578
    edited June 2015

    I can answer some of these, I think.

    Pyrex - Used for industrial glass like beakers, test tubes, cookware, etc. If you have a glass measuring cup, It's probably Pyrex.
    Lucite - The stuff used on the sides of really nerdy computer cases. Was also used for the casement windows in so called "Florida rooms" as a textured glass.
    Architectural Plain - Think about glass and concrete sky scrapers. This is that glass. Crown glass, is usually what you hear when someone refers to window panes, but it's basically the same stuff, with only slight differences to strengthen for various purposes.
    Flint/Lead - Also known as Flint Glass, Lead Glass, Lead Crystal, or just Crystal. Crystal glassware, like Waterford. Historically the amount of Lead Oxide used in production varied wildly.
    Arsenic Trisulfide - I was curious and looked this up, so I have no real personal knowledge. It's used in infrared transmitting optics.
    Fused Silica - Also looked this one up. Used most visibly in camera and telescope optics because of it's wide transmissivity (ultraviolet the near infrared). Also used in optical fiber (i.e. the stuff that makes the Internet work).

    Diamond isn't among those, but I think there's a built-in Iray material for that. Regardless, google the IOR (index of refraction) of any light transmitting material and you should be able to come up with a reasonable approximation. Diamond, by the way, has an IOR of 2.417.

    Mostly, when you want "plain old glass," it will be architectural. If you're after absolute realism, probably start with architectural glass and do a few google searches to find the IOR for the specific glass you're looking for and plug it in on the surfaces tab.

    Post edited by Esemwy on
  • mjc1016mjc1016 Posts: 15,001
    edited December 1969

    Esemwy said:
    I can answer some of these, I think.

    Pyrex - Used for industrial glass like beakers, test tubes, cookware, etc. If you have a glass measuring cup, It's probably Pyrex.
    Lucite - The stuff used on the sides of really nerdy computer cases. Was also used for the casement windows in so called "Florida rooms" as a textured glass.
    Architectural Plain - Think about glass and concrete sky scrapers. This is that glass. Crown glass, is usually what you hear when someone refers to window panes, but it's basically the same stuff, with only slight differences to strengthen for various purposes.
    Flint/Lead - Also known as Flint Glass, Lead Glass, Lead Crystal, or just Crystal. Crystal glassware, like Waterford. Historically the amount of Lead Oxide used in production varied wildly.
    Arsenic Trisulfide - I was curious and looked this up, so I have no real personal knowledge. It's used in infrared transmitting optics.
    Fused Silica - Also looked this one up. Used most visibly in camera and telescope optics because of it's wide transmissivity (ultraviolet the near infrared). Also used in optical fiber (i.e. the stuff that makes the Internet work).

    Diamond isn't among those, but I think there's a built-in Iray material for that. Regardless, google the IOR (index of refraction) of any light transmitting material and you should be able to come up with a reasonable approximation. Diamond, by the way, has an IOR of 2.417.

    Mostly, when you want "plain old glass," it will be architectural. If you're after absolute realism, probably start with architectural glass and do a few google searches to find the IOR for the specific glass you're looking for and plug it in on the surfaces tab.

    Bottles, windows, etc, use Architectural...although some bottles would probably be fine with the Pyrex setting.

    Wine glasses, cut crystal and all sorts of 'fancy' glassware...the various flint/lead settings.

  • Ralf1958Ralf1958 Posts: 688
    edited December 1969

    Thank you guys! Now at least I got an idea of the differences! :-)

  • Dumor3DDumor3D Posts: 1,316
    edited December 1969

    Very generally speaking, higher quality glass has a higher Index of Refraction or IOR. So, fine crystal might be IOR 1.80 which is commonly known as Flint 71% Lead Glass. The higher the IOR, the more the light dances around within the glass giving it a brighter appearance.

    The answers provided by the others here are correct. Thanks for those! :)

    I hope you enjoy the product! Iray handles glass beautifully. It's one of the huge bonuses to this render engine.

  • Ralf1958Ralf1958 Posts: 688
    edited December 1969

    :-) :-) :-)

  • EsemwyEsemwy Posts: 578
    edited December 1969

    Cool google find.
    A complete IOR list... Well, complete-ish...

  • Ralf1958Ralf1958 Posts: 688
    edited December 1969

    Esemwy said:
    Cool google find.
    A complete IOR list... Well, complete-ish...

    WOW! Thanks! :-)

  • mjc1016mjc1016 Posts: 15,001
    edited December 1969

    Here's another list...

    http://www.pixelandpoly.com/ior.html

  • TaozTaoz Posts: 9,979
    edited December 1969

    Can't get this to work. I create a primitive, apply IOR (Fused Silica) and Color (Amethyst), and get this? IRay works fine with other stuff. What am I doing wrong?

    No NVidia card, is that required for this?
    --

    iray_glass01.jpg
    705 x 717 - 9K
  • TaozTaoz Posts: 9,979
    edited December 1969

    BTW, product page says "Compatible with DS 4.7", shouldn't it be 4.8 which is the first version with IRay (AFAIK)?

  • Dumor3DDumor3D Posts: 1,316
    edited December 1969

    Taozen said:
    Can't get this to work. I create a primitive, apply IOR (Fused Silica) and Color (Amethyst), and get this? IRay works fine with other stuff. What am I doing wrong?

    No NVidia card, is that required for this?
    --

    I'm not sure, so I'll run down a list. After creating the primitive, you need to select it in the scene tab, then go to the surfaces tab and select the material... most likely named default. Then apply the glass type and then apply the color. Run a test render and you should see success!

  • EsemwyEsemwy Posts: 578
    edited June 2015

    DAZ Script to set the IOR of a surface.

    Really, really, really ugly hack. --> setIOR.dsa

    - May not work
    - May destroy your work
    - Might do something unpleasant to the family pet

    If it does work, it will display a dropdown from which you can select a material. When you hit OK, it will apply the IOR to the currently selected surface(s).

    It does not set the base material first. That's your responsibility. I'd suggest starting with architectural glass.

    Post edited by Esemwy on
  • EsemwyEsemwy Posts: 578
    edited December 1969

    Taozen said:
    Can't get this to work. I create a primitive, apply IOR (Fused Silica) and Color (Amethyst), and get this? IRay works fine with other stuff. What am I doing wrong?

    No NVidia card, is that required for this?
    --


    I'd say you didn't apply the material to a surface. I base this on the fact that that's what I usually do wrong.

    You have to have the surface selected in the Surfaces tab before you can apply a material.

  • Ralf1958Ralf1958 Posts: 688
    edited December 1969

    mjc1016 said:

    Thanks for those lists guys! Very usefull! :-)

  • Ralf1958Ralf1958 Posts: 688
    edited June 2015

    Esemwy said:
    DAZ Script to set the IOR of a surface.

    Really, really, really ugly hack. --> setIOR.dsa

    - May not work
    - May destroy your work
    - Might do something unpleasant to the family pet

    If it does work, it will display a dropdown from which you can select a material. When you hit OK, it will apply the IOR to the currently selected surface(s).

    It does not set the base material first. That's your responsibility. I'd suggest starting with architectural glass.

    The Link does not work for me :-(

    EDIT: Got it! :-) Thanks!

    Post edited by Ralf1958 on
  • Ralf1958Ralf1958 Posts: 688
    edited December 1969

    Awesome script Esemwy! Works great! :-)

  • TaozTaoz Posts: 9,979
    edited December 1969

    Thanks Dumor3D & Esemwy, you're right - forgot to select the surface. Works now!

  • Dumor3DDumor3D Posts: 1,316
    edited December 1969

    Taozen said:
    Thanks Dumor3D & Esemwy, you're right - forgot to select the surface. Works now!

    That's the easiest thing to forget. I do it all the time. :)

  • Ralf1958Ralf1958 Posts: 688
    edited June 2015

    @ Dumor3D - It would be really helpful (and I would buy it instantly), if you could make a set of common liquids shaders, like: wine, beer, milk, oil, coke etc.
    Also some water surfaces like ruff ocean, sea, lake, river would be nice.

    Post edited by Ralf1958 on
  • EsemwyEsemwy Posts: 578
    edited December 1969

    Significantly updated the GUI. Less ugly hack now.
    Download here.

    If anyone knows how to make DzFloatSliders display more significant digits, please speak up.

  • Ralf1958Ralf1958 Posts: 688
    edited December 1969

    Esemwy said:
    Significantly updated the GUI. Less ugly hack now.
    Download here.

    If anyone knows how to make DzFloatSliders display more significant digits, please speak up.

    Where does the IOR.json has to go???

  • EsemwyEsemwy Posts: 578
    edited December 1969

    IOR.json and setIOR.dsa need to be in the same directory. The JSON file is the data. The DSA file is the script. Both have changed since the initial version.

  • Ralf1958Ralf1958 Posts: 688
    edited December 1969

    Esemwy said:
    IOR.json and setIOR.dsa need to be in the same directory. The JSON file is the data. The DSA file is the script. Both have changed since the initial version.

    Got it! Thank you very much for this. :-)

Sign In or Register to comment.