x


Problem with models and inside of them.

Ok, so i use cinema 4d to model my game objects and basically everything. I made a room sorta thing in c4d and its a closed shape and i realized when i walk inside the room it is clear, and it looks like its not there. so i noticed unity only "renders' the outside of a model, is there a way to change that? Thanks

more ▼

asked May 03 '11 at 08:56 PM

sean 6 gravatar image

sean 6
1 2 2 2

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

4 answers: sort voted first

Backface culling. It's a rendering optimization. Most of the time you don't need to draw triangles that are "facing" away from the camera because they are obscured by other triangles.

http://answers.unity3d.com/questions/711/transparency-and-backface-culling

more ▼

answered May 03 '11 at 09:04 PM

flaviusxvii gravatar image

flaviusxvii
3k 13 19 43

Well, that's a solution for self-illum / transparent shaders. One face (or better one vertex) has only one normal vector. The lighting would be wrong for one side. The best way for rooms that have walls that can be seen form both sides is what Apples_mmmmmmmm suggested. Actually real walls also aren't that thin so in general a wall should have a volume.

May 03 '11 at 10:37 PM Bunny83
(comments are locked)
10|3000 characters needed characters left

Just invert the faces and problem solved.

Good Luck

more ▼

answered May 03 '11 at 09:20 PM

Noah 1 gravatar image

Noah 1
1.1k 33 45 50

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

I assume from the way it's described that the room you made is one object. Because of this, only one side of this object can be lit. If you want to be able to see the inside and outside of a "room" then I suggest modeling 4 seperate walls (if it's a square/rectangular room, and if it's square then you can simply duplicate one wall 4 times, line them so that they evenly line up with each other, once that's done cut a hole in one wall in order to make a doorway.) By doing it this way, the outer faces of each wall piece will be seen and you can simply combine the objects in order to move it around easily.

more ▼

answered May 03 '11 at 10:25 PM

Apples_mmmmmmmm gravatar image

Apples_mmmmmmmm
188 5 9 17

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

ok, cool thanks a lot now 1 more questing, is there a way to instead of inverting faces so there seen from inside do something where there seen from inside and out, im thinking mabey just creating 2 models 1 inverted and one normal and aligning them

more ▼

answered May 03 '11 at 10:14 PM

sean 6 gravatar image

sean 6
1 2 2 2

You shouldn't use answers to ask more questions. Either leave a comment on an answer or ask a new question. If you follow the link i posted you'll see that you can disable the culling, so you won't need two models, it'll just always draw.

May 03 '11 at 10:35 PM flaviusxvii
(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:

x147
x11

asked: May 03 '11 at 08:56 PM

Seen: 724 times

Last Updated: May 03 '11 at 09:14 PM