Semi transparent texture glitch

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.

The simplest solution is to break the door into 2. Opaque shader for frame and a transparent shader for the glass.

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

I am not sure I follow.
Either

  • 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.
1 Like

I will try this, just to make sure, by multi materials you mean multi/sub-object in 3ds max or something in unity?

Yeah in 3ds max.
http://knowledge.autodesk.com/support/3ds-max/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/3DSMax/files/GUID-D968CDD9-4C5D-489D-A311-ED7486FCD4AA-htm.html