I’m trying to generate and display a tile grid for my game.
My first attempt consists of creating an ObjectContainer3D and adding 64x64 meshes based off the same PlaneGeometry and a series of 4 different ColorMaterials
psuedo-code:
colour_materials[4] = generate materials(...)
plane = new PlaneGeometry(...)
for (x,z) = (0,0)-(64,64)
colour = lookup_colour_material(x,y)
mesh = new mesh( plane, colour )
mesh.x = x
mesh.z = z
mesh.y = lookup_height(x,y)
add child ( mesh )
However this method goes excruciatingly slow at both start-up and render-time.
What would be a better method for doing this with Away3D?