City View

Blitz3D Forums/Blitz3D Beginners Area/City View

I have an idea for creating a random city.

1.First you need to create 2 textured tile meshes. The mesh would be modelled like a segment of road and would include the pavement (sidewalk for you Americans), it would include a straight and a crossroads.

2.Next you create a 2D array of say 50*50. Initialise the array with zero's.

3.Treat the array like a 2 Dimensional grid. At random loop through the horizontal plane and add 1 to its value then at random loop through the vertical plane and add 2 to its value.

4.It would look something like this

20000202002000020200200
31111313113111131311311
20000202002000020200200
31111313113111131311311
20000202002000020200200
20000202002000020200200
31111313113111131311311
20000202002000020200200
20000202002000020200200
31111313113111131311311

0= were buildings can be placed
1= horizontal road mesh
2= (rotated) vertical road mesh
3= Cross Road mesh

5. You now need to model several different sized buildings which can be placed on the "zero's", remember you could use the same model with different textures or even scale it.