Hi, guys!
You are absolutely right, its not efficient at all. I posted it, because I wanted to show my progress with a project I started a while ago.
My goal is to create a text based file format, which can describe object geometry and appearance in an easy to read, intuitive and yet powerful way!
I called it "Briefly Described Object - (*.BDO)" with analogy to "Dark Basic Object - (*.DBO)"
This "Minecraft Diamond Sword" was actually generated from this file:
Sword.BDO
#style 1
diffuse-color : 13, 63, 54
#style 2
diffuse-color : 51, 234, 203
#style 3
diffuse-color : 42, 199, 172
#style 4
diffuse-color : 8, 37, 32
#style 5
diffuse-color : 21, 99, 85
#style 6
diffuse-color : 31, 138, 120
#style 7
diffuse-color : 104, 77, 30
#style 8
diffuse-color : 73, 54, 21
#style 9
diffuse-color : 41, 30, 12
#style 0
diffuse-color : 137, 103, 39
#define 1 1"1
#define 2 1"2
#define 3 1"3
#define 4 1"4
#define 5 1"5
#define 6 1"6
#define 7 1"7
#define 8 1"8
#define 9 1"9
#define 0 1"0
#object Sword
#front
1 1 1
1 3 2 1
1 2 3 2 1
. 1 2 3 2 1
. . 1 2 3 2 1
. . . 1 2 3 2 1
. . . . 1 2 3 2 1 . . . 4 4
. . . . . 1 2 3 2 1 . 4 5 4
. . . . . . 1 2 3 2 4 6 4
. . . . . . . 1 2 3 4 6 4
. . . . . . . . 4 4 6 4
. . . . . . . 4 5 6 4 7 8
. . . . . . 4 5 4 4 . 9 0 8
. . . . . . 4 4 . . . . 9 7 4 4
. . . . . . . . . . . . . 4 6 4
. . . . . . . . . . . . . 4 4 4
This example doesn't demonstrate all features that I have coded so far, but accounts for the high number of polys (I haven't implemented any kind of polygon reduction so far).
Quote: "
i think each of those 'pixels'/'voxels' is a distinct cube object. i count 84, *6 faces *2 = 1008 triangles, could be an odd floater in there but it sounds about right.
"
That's right! The extra one polygon (1009) comes from the triangle object to which all other cubes are attached as limbs.
Quote: "
Care to show a wireframe? 1000 polygons sounds quite much for this - I might be wrong though
"
The models are too heavy to be used effectively at this stage of the development. As of now I'm more focused on the syntax and parsing.
I have engineered BDO's to be imported into DBPro as easy as:
objectID = LoadBDO("Sword.BDO")
If you have any opinions, suggestions or critique regarding this project, feel free to ask.
Bye!