- Home /
I want to walk into a cube !
Hi, sorry if this is a stupid question, but I am a beginner, and I want to model a house, So I started by a cube polygone in maya and then exported it to unity (I know I can create a cube in unity...), and I placed a First Person Controller inside the polygone or outside it, where the door in front of me, then when I Enter the door, the cube disappear, I only see the blue color....
I know that this is an optimisation where the engine should not draw the inside of something because it will not be visible anyway...
however, how then I can built a house ? is there a better solution or I am missing something...
Answer by Eric5h5 · Apr 10, 2011 at 08:28 PM
Model the house properly, with walls that have thickness and two sides.
Answer by Marnix · Apr 10, 2011 at 08:37 PM
Unity uses backface culling. Because the normals (arrows that indicate the front of a face) are turned to the outside, you can't see the inside. You only modelled one side of your cube and no inside.
You could think of modelling an inward cube as well inside your cube, or you could turn your backface culling off. But this would give problems with texturing, because bricks will be on the inside AND the outside when you put a texture on your walls.
do this mean that I should create 2 cube, one inside the other, with inverse normals, so I have thickness and two sides ?
Your answer
Follow this Question
Related Questions
backface culling 1 Answer
How to know when a plane's back face is being culled? 0 Answers
Backface Culling Unity 0 Answers