I’m working on a simple first person 3D game in XNA. I have gotten to the point where I can place walls in my world, move arround with a propper first person camera and check collision between the walls and the camera.
I have done myself the favor of creating some wall-“drawing” functions that makes it fairly easy to place walls (simply a start and end position), but I still find it horribly annoying to place one by one wall, coordinate by coordinate, when my goal is to create labyrinths 😉
All I need to place a wall is 2 vertexes, a start and an end position. They can even be in 2D, as I only need the X and Z position. I have fixed height for walls.
I have been searching a little for a program that would let me plot coordinates and export as XML or some other format I can load in XNA/C#. If I could simply get two and two coordinates out from xml, that I plot in a program, building maps would be unbelievably much easier!
Does anyone know of something like this I could use? It could be as simple as a sheet that I set the size of (lets say 5000x5000px), then I place two points on the sheet (they would represent two x,y positions) and link them together. Then I could read the two points from whatever output format in my program and create the walls.
I would go ahead and make something myself, but sadly I am horribly limited by time thanks to exams and what not.
Did you think about using SVG consisting from straight lines instead of bitmap?
You can then write simple content pipeline extension which parse the SVG to precomputed vertex/index buffer data. Since you need just lines and not any fluffy SVG stuff, the
parser should not get so hard and expensive.