Clear glass using the default iRAY Uber shaders not working
RAMWolff
Posts: 10,343
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

Comments
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...
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.
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 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?
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.
...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).
...here's the result.
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.
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
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.
Hmmm, don't know what settings your using Kyoto, I find IOR hidden and not an active option using the iRAY Uber shader...
...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.
Yes, I used the clear glass iRAY Uber shader but still do not see the IOR channel .. it's there but it's hidden!
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.
Ah, OK, thanks so much!
...yes misnomered them. apologies.