# Constructing buildings on a plane in game mode

**URL:** <https://discourse.threejs.org/t/constructing-buildings-on-a-plane-in-game-mode/18457>\
**Category:** Questions\
**Created:** [September 5, 2020, 4:03pm UTC](https://discourse.threejs.org/t/constructing-buildings-on-a-plane-in-game-mode/18457 "2020-09-05T16:03:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vfxbro](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/vfxbro/32/13104_2.png) [@vfxbro](https://discourse.threejs.org/u/vfxbro)\
**Post date:** [September 5, 2020, 4:03pm UTC](https://discourse.threejs.org/t/constructing-buildings-on-a-plane-in-game-mode/18457/1 "2020-09-05T16:03:26Z")

</div>

Hello!  
Are there examples of how building creation works in game mode. We have a plane divided into squares, in each square you can build buildings, like a Sims city or Warcraft 3. we have a grid.

How can you implement this on Three.js?

![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/4/44a8ac6ec2a0ce7e3074d05ac7bc5c46355edc33.jpeg)

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [September 5, 2020, 5:41pm UTC](https://discourse.threejs.org/t/constructing-buildings-on-a-plane-in-game-mode/18457/2 "2020-09-05T17:41:34Z")

</div>

There is an official example from the repository that demonstrates a simple voxel editor. You should be able to use parts of the code in order the implement the positioning of game entities onto the plane.

[https://threejs.org/examples/webgl\_interactive\_voxelpainter](https://threejs.org/examples/webgl_interactive_voxelpainter)

---

<div class="post-metadata">

**Author:** ![vfxbro](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/vfxbro/32/13104_2.png) [@vfxbro](https://discourse.threejs.org/u/vfxbro)\
**Post date:** [September 6, 2020, 6:06pm UTC](https://discourse.threejs.org/t/constructing-buildings-on-a-plane-in-game-mode/18457/3 "2020-09-06T18:06:09Z")

</div>

Many thanks!

Help please, I want an imported 3D object to be created instead of a cube in formats: gltf, obj  
now i am getting error.
