meshes
- CannonBallGuy
- Private First Class
- Posts: 2083
- Joined: Wed Apr 12, 2006 1:31 am
- Contact:
Please see http://my.bzflag.org/w/Mesh
Merry Christmas!
"Look, if I don't buy booze for the kids, I don't get any incriminating pictures to show to their parents, my business goes down the sink, my girlfriend leaves me and the baby goes on ebay. So help me search..."
"go Play With Toys urself in a dark alley u donkey ******" - Lt-Kirby2007
- CannonBallGuy
- Private First Class
- Posts: 2083
- Joined: Wed Apr 12, 2006 1:31 am
- Contact:
I don't fully understand those either, but I can still make mesh objects such as those in the Battle of Normandy map.
Merry Christmas!
"Look, if I don't buy booze for the kids, I don't get any incriminating pictures to show to their parents, my business goes down the sink, my girlfriend leaves me and the baby goes on ebay. So help me search..."
"go Play With Toys urself in a dark alley u donkey ******" - Lt-Kirby2007
- CannonBallGuy
- Private First Class
- Posts: 2083
- Joined: Wed Apr 12, 2006 1:31 am
- Contact:
Imagine you have a box.
Each "side" - each "surface" is a "face".
Each "corner" is a vertex.
Imagine a big open 3D space, you come along and mark a little dot in mid air - you have made a vertex, a point in space.
Now make two more of those too, anywhere in the space.
Now, to make a "face", something you can touch, join up the three dots, the three vertices.
Now you have a face, but only on one side. To make the face exist on both sides, you have to make another face for the other side. This is easy, just join up the dots in the reverse order.
That explains this code:
Each "side" - each "surface" is a "face".
Each "corner" is a vertex.
Imagine a big open 3D space, you come along and mark a little dot in mid air - you have made a vertex, a point in space.
Now make two more of those too, anywhere in the space.
Now, to make a "face", something you can touch, join up the three dots, the three vertices.
Now you have a face, but only on one side. To make the face exist on both sides, you have to make another face for the other side. This is easy, just join up the dots in the reverse order.
That explains this code:
Code: Select all
mesh
vertex 0 0 0 # add a vertex (repeatable) - This is vertex number 0
vertex 10 10 0 # add a vertex (repeatable) - This is vertex number 1
vertex 10 20 10 # add a vertex (repeatable) - This is vertex number 2
vertex 0 0 10 # add a vertex (repeatable) - This is vertex number 3
face # start a face (repeatable)
vertices 0 1 2 3 # list of vertices (requires at least three)
end
face # start a face (repeatable)
vertices 3 2 1 0 # this is the back to the previous face
end
end
Merry Christmas!
"Look, if I don't buy booze for the kids, I don't get any incriminating pictures to show to their parents, my business goes down the sink, my girlfriend leaves me and the baby goes on ebay. So help me search..."
"go Play With Toys urself in a dark alley u donkey ******" - Lt-Kirby2007
- CannonBallGuy
- Private First Class
- Posts: 2083
- Joined: Wed Apr 12, 2006 1:31 am
- Contact:
A face is a "side". Vertices do not mean anything if you do not use them to construct a face.
Merry Christmas!
"Look, if I don't buy booze for the kids, I don't get any incriminating pictures to show to their parents, my business goes down the sink, my girlfriend leaves me and the baby goes on ebay. So help me search..."
"go Play With Toys urself in a dark alley u donkey ******" - Lt-Kirby2007
a cd case. Each sharp corner equals a vertex. Now, with just those 8 vertices you would have just 8 little dots in space.
Now, when you make a face, and apply vertices to it, you have a solid 2 dimensional figure. When you connect the 4 faces together, you have the entire solid 3 dimensional figure.
Just trying to expand on CBG's advice a little by adding something most can relate to.
Read up some on 3 dimensional figures.
Now, when you make a face, and apply vertices to it, you have a solid 2 dimensional figure. When you connect the 4 faces together, you have the entire solid 3 dimensional figure.
Just trying to expand on CBG's advice a little by adding something most can relate to.
Read up some on 3 dimensional figures.