2. Set up architectural properties

Select the BuildingEngine gameObject in the Hierarchy. If not present, you can find it in the package BuildingEngine in your project, in the prefabs folder.

Expand the BuildingEngine gameObject in the Hierarchy and select the builder gameObject.

- choose the value for wall depth, story height and texture pixel resolution in the architectural properties component.

In order to use the tiny house 3D model in a game, we choose to have :

wall height = 3

floorHeight = 3.4

wallDepth = 0.1 (by room. Two adjacent rooms make a wallDepth of 0.2)

facadeDepth = 0.1

floorDepth = 0.4

It's not real-life dimensions but these work well in game. You can also use the menu GameObject -> BuildingEngine -> Game architectural properties. All dimensions are in Unity3D units.

We set up the pixel by unit to 128 (ie 128 pixels on a texture cover one unit long in 3D space).

Tiny house architectural properties

Also make sure than Roof style default textfield is empty.

We need some portal shape, so make sure you have :

** door

outline : (x = -0.8, y = 0), (x = -0.8, y = 2.4), (x = 0.8, y = 2.4), (x = 0.8, y = 0)

width = 2

** windowX2

outline : (x = -0.9, y = 1), (x = -0.9, y = 2), (x = 0.9, y = 2), (x = 0.9, y = 1)

width = 3

** doorX2

outline : (x = -1.3, y = 0), (x = -1.3, y = 2.4), (x = 1.3, y = 2.4), (x = 1.3, y = 0)

width = 3

Tiny house portal architectural infos

- choose the default material for facades, roofs, walls, floors, ceilings, and the default builder for roofs in the architectural properties component.

- (optional) Add roof builder component to the builder gameObject.

Add a FlatRoofMeshesBuilder component at the builder gameObject. You find it in the BuildingEngine package -> "scripts" folder -> "roofBuilders" folder. In the roof builder type name textfield, name it "flatRoof".

Adding a flat roof builder

- (optional) add depth builders according to your use.

- (optional) add prefabs to the props list, in the prop list component.

We need four prefabs in the list : modernWoodDoor, glassBlackMetalDoorX2, BlackDoubleWindow and stairU.

Tiny house prop list

Next >>

© 2017 Magyc Pixel. All rights reserved | Design by W3layouts