Clear glass using the default iRAY Uber shaders not working

RAMWolffRAMWolff Posts: 10,343
edited April 2018 in The Commons

Hi,

I'm a little annoyed right now . Not sure if it's a bug or my end of things.  I found a couple of wine bottle and glass props in my collection while setting up promos and wanted to add a little more sparkle to the scene.  The render went fine but upon inspection I saw that the glass shader wasn't doing it's thing properly.  I tried every which way to get it to look right but to no avail.  I then saved out the scene for safe keeping and deleted everything but the wine bottle and glasses.  Can't get it work.  New scene, same thing.  I'm not beating my head against the wall over this but it's quite annoying when you have an idea and you can't make it work because of some weird what ever that prevents you from achieving it. 

I've tried  the various glass shaders from the DAZ Uber shaders and yes, the bottle and glasses are both converted to the iRAY shader.  Something is amiss and I just don't know what it is. 

I'm using the most recent, stable version of DAZ Studio as well.

Thank you!

Richard

wine and glasses.jpg
832 x 902 - 24K
Post edited by RAMWolff on

Comments

  • tj_1ca9500btj_1ca9500b Posts: 2,057
    edited April 2018

    Hmmm... couple of thoughts.

    1) Did you select the glass surface subdivision under surfaces before applying the glass shader?

    2) Sometimes it helps if you apply the Iray Uber Base shader first, and then apply the glass shader you want.

    3) If other things aren't working, there's always cutout opacity for the glass... Dialing it down to say 5% makes for a very transparent object... probably not the 'approved' way but I use cutout opacity a lot as a shortcut...

    Post edited by tj_1ca9500b on
  • You may want to try creating a primitive and apply the Iray glass shader to it to rule out something weird with the geometry of the bottle and glasses.

  • RAMWolffRAMWolff Posts: 10,343
    edited April 2018

    Having success.  Strangely enough I think it's my lighting.  I found a test scene in my searching my Library and it rendered fine, then I added in a few of the objects from the Promo file and those too render fine.  Didn't realize that lighting had to be 'just so' in order to get glass shaders to work well. 

    TestScene PLUS OBJS from my Promo Scene.jpg
    832 x 902 - 202K
    Post edited by RAMWolff on
  • nemesis10nemesis10 Posts: 3,778
    edited April 2018
    RAMWolff said:

    Hi,

    I'm a little annoyed right now . Not sure if it's a bug or my end of things.  I found a couple of wine bottle and glass props in my collection while setting up promos and wanted to add a little more sparkle to the scene.  The render went fine but upon inspection I saw that the glass shader wasn't doing it's thing properly.  I tried every which way to get it to look right but to no avail.  I then saved out the scene for safe keeping and deleted everything but the wine bottle and glasses.  Can't get it work.  New scene, same thing.  I'm not beating my head against the wall over this but it's quite annoying when you have an idea and you can't make it work because of some weird what ever that prevents you from achieving it. 

    I've tried  the various glass shaders from the DAZ Uber shaders and yes, the bottle and glasses are both converted to the iRAY shader.  Something is amiss and I just don't know what it is. 

    I'm using the most recent, stable version of DAZ Studio as well.

    Thank you!

    Richard

    I tried a little test; I created a primitive sphere, used the default iray shader first, and then applied the thick glass iray shader.  I loaded a neutral hdri for the background, set the render to defualt and did an iray render.  Is it possible that your graphics card is malfunctioning or does other transparency work?

    clear.jpg
    1651 x 1216 - 307K
    Post edited by nemesis10 on
  • murgatroyd314murgatroyd314 Posts: 1,567

    The problem is that you have no background. It's trying to use the light passing through the glass, but there's nothing there to provide that light.

  • kyoto kidkyoto kid Posts: 41,851
    edited April 2018

    ...ran a few tests and yes indeed you need some sort of background for light to bounce off of.

    Nemisis10, what was the IOR of the glass?  I used the same shader but turned down the IOR to 1.15 as 1.55 was way too strong particularly if you had fluid in the bottle.

    Will post my last test after it's done cooking (CPU rendering takes a bit).

    Post edited by kyoto kid on
  • kyoto kidkyoto kid Posts: 41,851

    ...here's the result.

     

    wine bottle test.jpg
    556 x 900 - 333K
  • macleanmaclean Posts: 2,438

    Refraction is dependent on having a background. It's the distortion of objects seen through glass, and if there's no background, there's nothing to refract. Lighting also plays a big part, but that's more to do with getting good reflections on the glass.

  • PetraPetra Posts: 1,157
    RAMWolff said:

    Having success.  Strangely enough I think it's my lighting.  I found a test scene in my searching my Library and it rendered fine, then I added in a few of the objects from the Promo file and those too render fine.  Didn't realize that lighting had to be 'just so' in order to get glass shaders to work well. 

    I am glad you figured it out, I was going to suggest to see if it is the light as that happend to me too.

    May I ask where you got those lovely props?

    Pet

  • RAMWolffRAMWolff Posts: 10,343

    Thanks for the tip on the IOR.  I'll see how mine is set up! 

    The props were found by just typing in Wine in the search bar and I just scrolled through.  They are part of other sets I think. 

  • RAMWolffRAMWolff Posts: 10,343

    Hmmm, don't know what settings your using Kyoto, I find IOR hidden and not an active option using the iRAY Uber shader...

  • kyoto kidkyoto kid Posts: 41,851
    edited April 2018

    ...I used the Solid Clear Glass Uber shader, should give you an active IOR channel. When I apply any Iray base Uber shader, I also always select "ignore" instead of "replace" this gives me all the Iray property channels.

    The bottle I used was from Preadatron's Trash Stash as it had separate material zones for the glass, label, and interior.  To create the liquid I used a cylinder primitive to which I applied one of Mech3D's Iray liquid shaders and gave it a nice Rosé colour.  For the cork I used another cylinder to which I applied a light coloured wood shader and lightened a bit more by adjusting the surface Gamma rate.

    Would have posted it sooner however as I mentioned I am on the CPU and it took about 25 min for the final render.  Yeah, that's how slow Iray is on my system even for rendering set to "Speed" Render quality at 1, and Optix turned off.

    Post edited by kyoto kid on
  • RAMWolffRAMWolff Posts: 10,343

    Yes, I used the clear glass iRAY Uber shader but still do not see the IOR channel .. it's there but it's hidden! 

  • kyoto kidkyoto kid Posts: 41,851
    ...interesting. Not. at home right now and won't be back for a couple hours so id you can sit tight when I get baxk I'll look into this (phone app acting screwy and trying to go into speech to text mode)
  • RAMWolffRAMWolff Posts: 10,343

    Thanks so much!  :-)

  • The channel is called Refraction Index.  The hidden IOR channels are for Top Coat, Thin Film, Top Coat Thin Film, and Metallic Flakes Thin Film.

  • RAMWolffRAMWolff Posts: 10,343

    Ah, OK, thanks so much! 

  • kyoto kidkyoto kid Posts: 41,851

    ...yes misnomered them.  apologies.

Sign In or Register to comment.