Normals walls

Hi,

I’m new in the Unity world and perhaps my question is stupid, so sorry!!
I have cinema 4D v8.0 and as you know I can’t export to fbx format :cry:
But I have the wavefront option to export my models to obj. Unity import the object (a tower from my castle). I can see it in the editor and place it in my first map. Bu when I enter into the tower the walls disapear and I can pass through the walls (well, my first person player stops 3 or 4 seconds before pass through the wall). Of course my tower has the colliders on!!!
Any idea? What role have the normals in the objects?

Thank you,

Alex

just a guess… do the walls actually have volume or are you using double sided polys in C4? the latter won’t work in unity. you need real polys not just a double sided surface. or perhaps the normals on the interior polys are flipped?

Thank you Pete!! So you are telling me I can’t use planes for my models? What about the glass of a window? Or how can I construct the leaves of a tree? I use planes with alphas…

Bear in mind that your collision mesh doesn’t have to be the same as your visual mesh. You could remove the window openings from the collision mesh altogether if you want to make it impossible for things to go through them.

In any case, the visual mesh is often more complicated than is necessary for a collision mesh, so there may also be an performance benefit to making a separate, simplified version for collisions.

Thanks Neil. :slight_smile:

alex, for double sided stuff like a window simply duplicate your plane and flip the normals. i usually move the polys apart a little too. like neil said, use a less complicated mesh for collision when you can.

look at the vegetation two pass shader for leaves. it won’t do two sided textures but you can use a one sided plane. the back face simply renders black. it looks pretty good though and depth sorts. it’s a little expensive on performance compared to the simple diffuse alpha but i really haven’t noticed much impact when using it for things like trees.

Ok pete. I get it!! It is a different method to create my 3D models but it works and is nice. Thank you!!