Creating a floor grid

Hello .

im tring to create a floor . (such as this one )

So far the only way i know how is by creating cubes with 0 hight and putting them together.

Is there any other/more efficient way to do so ?

Thank you for any advice!

1 Like

Try Quad instead, its pretty much one of the faces of a box.
You will have to do some rotation and translation to get it right however.

https://www.assembla.com/code/vmat/subversion/nodes/69/trunk/src/main/java/net/virtualmat/map/GridMesh.java#ln129
createGeometry method.

Of course you can simplify it a bit, depending if you want to have ‘grooves’ or just gaps or if you don’t need heights.

Above code assumes one big texture for everything. If you need per-square texture, you will need to complicate it a bit - solution would be to prepare texture atlas with all squares and then using proper tex coordinates for each square.

[video]http://www.youtube.com/watch?v=6nwAJY3jIEc[/video]

1 Like

Very sorry for the delay…
had lot of internet problems …

will try your solution and hope it will work :slight_smile: