Custom Geometry

Blitz3D Forums/Blitz3D Programming/Custom Geometry

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I've been slaving over how to allow the user to create unique rooms in my dungeon editor. At first it was just square rooms, and then I changed to creating pieces of room that were assembled like Legos. It finally hit me on the way to McDonalds (my boy is a Mario nut and had to have the new Mario toys...).

The goal is to allow custom room design where the floor is dragged out and then the walls are dragged up. I can do that now no problem with a simple square room. I also want the user to be able to create custom room shapes. So here's my idea.

A text file that contains XYZ vertice coordinates for the floor only, all plotted on a 10x10 grid where 0,0 is in the lower left hand corner. The person would define the vertice number ie "v1" followed by the XYZ coordinate. It might look like this:

v1:0,0,0
v2:0,0,10
v3:10,0,10
v4:10,0,0

Then they would follow it up with the actual way the floor looks by connecting the vertices.

connect:v1,v2,v3,v4

All the player is doing it creating a floorplan shape and then connecting the dots to give it the correct outline. Then that script is loaded in and the flat object is made and then walls raised up.

Keep in mind this method is mainly for people who want to create a custom room but have never or never will touch a 3d modeler.