Hi, I am attempting to build a program that can generate a maze and then render it and allow me to navigate through it using a camera. I can generate the maze (prims algorithm) and I am now attempting to create the maze as 3d objects and I have got stuck. I am having problems with creating the mesh buffers so that I can generate the walls and the floors of each cell. I obviously don't understand the docs properly as I thought I should be able to create a mesh and then work out my vertices for the walls and the floors. I was intending to have these in two separate meshbuffers which I then add to the mesh and then add the mesh to a meshscenenode which I then add to the scene with the manager.
What I need is information on:
how to create the vertices (should I be using vertex3d or array of ints/floats or even the geometrycreator for cubes and plains)
how to create meshbuffers using the vertex arrays (keep getting errors "cannot allocate to abstract type" using SSharedMeshBuffer)
how to set a material for each of the buffers as I don't see a setMaterial only getmaterial for a buffer and I want two different materials for the floor and the wall
When I have created all the walls and floors there are bound to be some doubles is this a problem or should I go over the buffers to remove them.
Any information on this would be useful mostly at this point I could do with some information on creating and manipulating meshbuffers correctly.
Thanks
[edit] just realised tutorial 23 is close so reading through that to see if I can make sense. It refs SMeshBuffer which doesn't seem to be in the docs anymore.