What is the best way to make a wall with a window?
Thats probably a question with a few answers. 2 I can think of are:
- Polygon model the wall, and extrude inwards to inset the window. fiddle round with extrusions and other basic tools to do the window sill. Then apply a diffuse texture to the polygons that are non-transparent, and a different texture to the transparent ones. Do the shader fine tuning in unity.
The key with this one is that there are two materials assigned to one object.
- just have a plane with a picture of a wall and window on it. use a transparent shader from unity with an alpha channel, and use the black/white areas of the textures alpha channel to define whats transparent and whats not.
theres also an example of instantiating a set of cubes in the docs-on the “Prefabs” page. And A blender script somewhere for making them in Blender.
I think the two materials approach might be easiest however, or you could have the windows themselves as seperate objects, so its one material per object
Any help?
AC
Thanks, you are very helpful. I can’t wait to try both ways!