Glass with a texture
![rubazepe](https://secure.gravatar.com/avatar/f6424a97d24b42be20628b18c11d3417?&r=pg&s=100&d=https%3A%2F%2Fvanillicon.com%2Ff6424a97d24b42be20628b18c11d3417_100.png)
Hey guys, an Iray newbie question:
I need to render a glass syringe with a logo on it.I have assigned the glass shader, but I don't know in which parameter to plug the image of the logo.
I got an example with a vase of glass and a happy clown.
I suppose that also it's necessary to make an alpha of the image to hide the background
Thanks for helping me out with this.
![](https://farnsworth-prod.uc.r.appspot.com/forums/uploads/thumbnails/FileUpload/d7/94ace608bb86a258bf79c0ff413393.jpg)
![](https://farnsworth-prod.uc.r.appspot.com/forums/uploads/thumbnails/FileUpload/d7/94ace608bb86a258bf79c0ff413393.jpg)
ejemplo vaso.jpg
480 x 640 - 36K
Comments
https://www.daz3d.com/forums/discussion/75203/wtut-decal-will-s-iray-decal-tutorial
Here's a tutorial on using Decals in Iray...this is the kind of stuff they were made for.
That's a great link, thanks mjc!
Another way to add a decal to a glass is to add the image (if it's already got a transparent background) to the glass using the LIE image editor
Or if you are using the glass shader, then add the decal as a texture and create a transparency map and place that in the cutout opacity.
I know this is an old post, but needed to do this for myself and after 2 days of experimenting (without using Iray decals) finally figured it out and wanted a record of how I did it for future use.
My post above will show the texture, but will remove the glass shader from the render.
What you need to do:
Select your surface and apply your Iray glass shader
In the glossy color setting, place your diffuse image
Set the glossy roughness to about .2
You will now have your glass with your image or words on it.
That sounds cool. Do you have an example to show?
Here's a render from part of the city in a comic I'm trying to put together.
For the video phone (Which was all set up for 3delight I believe and had no iray textures),
I added a new surface and made it emmissive for the overhead light
I made the phone screen emmissive
The glass was done with the iray cloudy glass texture, then added the logo using the method above
The rest of the prop I applied the sketchy toon shader to.