x


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...

more ▼

asked Apr 10 '11 at 07:47 PM

AAKLebanon gravatar image

AAKLebanon
45 8 9 10

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

Model the house properly, with walls that have thickness and two sides.

more ▼

answered Apr 10 '11 at 08:28 PM

Eric5h5 gravatar image

Eric5h5
80.3k 41 132 521

(comments are locked)
10|3000 characters needed characters left

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.

more ▼

answered Apr 10 '11 at 08:37 PM

Marnix gravatar image

Marnix
1.3k 21 31 45

do this mean that I should create 2 cube, one inside the other, with inverse normals, so I have thickness and two sides ?

Apr 10 '11 at 08:44 PM AAKLebanon

@AAK Yes that is what it means.

Apr 10 '11 at 09:17 PM Marnix
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x288
x147
x11
x3

asked: Apr 10 '11 at 07:47 PM

Seen: 1052 times

Last Updated: Apr 10 '11 at 08:24 PM