Hello everyone. I have a problem with making door with window in it. I did PSD texture with alpha channel, but every time I apply and try different shaders I got this seeing through glitch, which disappears when I use cutout but then windows is fully transparent not just partially. Here are screenshots:
Note the handle being visible through the door frame but cube is not visible
Here’s the other side
That is alpha channel, frame planks and handle are of course on white areas
And finally the settings. I’ve tried that with multiple shaders, like legacy transparent etc etc, but that handle is always visible on the back of the door.
I’ve tried to do that but if window is a child of frame then I can’t apply 2 different shaders to them. When I apply for example diffuse shader to frame then window as its child will get the same. I know I could separate them but I’ve scripts written for doors like opening so in this case window would not trigger them or door would open but window remain in the same place
Create 2 materials one transparent and one opaque. Edit your door so it uses multi-materials(2 material slots for one mesh)
Break door into 2 separate objects and make sure they don’t share the same material or you will get the problem you described where they are both either transparent or opaque. Parent window to door and it will follow the door when it opens/closes.