- Home /
How to Make a Window?
I'm looking for a way to create a cube that can project whatever's behind it, like a window. Something that could be used without having to create a new mesh for whatever the window would be used to see through. I've been trying to create this effect using a Render Texture, but I can't seem to find a way that makes it work well.
Answer by mlavik1 · Aug 29, 2016 at 09:34 AM
Please take a look at this page.
If you are using a texture on the cube, the texture image needs to have an appropriate alpha-value.
If not, you may simply do the following:
Create a cube.
Create a new material
Set the Material of the cube's "Mesh Renderer" to our new material.
Set the material's Rendering Mode to Transparent
Change the alpha-value of the material's Albedo colour
By changing the material's alpha value, you can make it transparent/semi-transparent.
If you want a windows inside your cube, as you write in your comment above, you could create a texture for your cube and let part of the texture be transparent (by changing the alpha values at that part of the texture)
I think there was a misunderstanding. I already knew how to make a material transparent. But I hadn't thought about what you said in the last sentence. That was exactly what I meant.
Answer by gmamafilms · Aug 27, 2016 at 02:23 PM
You can create two cubes in a cross pattern or make a 3d model of a window, because that would be much easier.
What I'm looking for is to be able to put a window model in the middle of a cube and be able to see through the cube with the window.
Your answer
Follow this Question
Related Questions
Possible to Output Render Texture or Camera Output to Multiple Displays? 0 Answers
transparent shader objects disappear on certain camera angles 6 Answers
DrawProcedural() in OnPostRender() drawing over transparent objects 1 Answer
How to do animated information panels 0 Answers
Is it possible to obscure 2D objects behind a transparent mesh? 2 Answers