How can I assign different materials to a room?

Hello,

I am new to Unity and I am trying to find out how to make a house. So far I designed the house in ProEngineer and exported it as a obj file with UV-Mapping. Now, my ground floor is a single object with a mesh (I suppose the little triangles form the mesh).

Now I want to assign bricks for the walls, wooden floor, tiles in the kitchen and so on… But, being a single object it applies the selected material to the entire house.

Please tell me if I should follow some other procedure or other steps or how can I do this?

First I tried to make the house in Unity but then I read that unity is not a 3d modeler so it doesn’t have sophisticated tools for that.

Thx.

There are two possibility to that problem:
1: You need to split the room into different meshes for every new material you like to use. That has the benefit that you can use different shader for the different textured materials.

  1. Bake all textures to one big texture and use one material with one shader for all together.That has the benefit that you have one draw call for the whole room , but you can not easily change the textures or reuse them in a different place in your game.

For from my experience you should go with option 1.

Ok. I will use step one. And how do I split the room into different meshes :slight_smile: ?

Well? any ideas? I tried to search solutions for this but it seems quite complicated. I can of course divide my house into different objects so that each wall has it’s own textures. But for example, an outside wall has a texture on the inside and another texture on the outside. Does that mean I need 2 different cubes?

I am pretty new to Unity but if this is true it seems kind of stupid to me. I mean it should easily be possible to give a certain texture to a certain surface of a cube. Please give me some hints on this because I think I’m missing something here and I don’t know what.

Thx.

I would suggest using submeshes. In Blender, you can create submeshes simply by assigning different textures to the faces that you want to be different submeshes. Then in Unity, each submesh has a material slot.

–Eric

Well I already designed this in ProEngineer. I have read some more on textures… I think I have to redesign this in Unity. The thing is I was kind of focused on dimensions and aligning things but as far as I could see this is not so important in game designing. In Proe it’s a different approach.

I don’t want to create a game, I only want to create a house and see how it looks on the inside (just a walk-through). So I suppose I have to make individual walls and use edited png’s for my textures. This should be the correct approach from what I understand so far…

No, Unity isn’t a modeling app. Modeling is done in an external program which is designed for that.

Not really. It’s easier to use submeshes as I suggested.

–Eric