This wiki is archived and useful information is being migrated to the main bzflag.org website
Editing Mesh
Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to copy and paste your text into a text file and save it for later.
The administrator who locked it offered this explanation: Archived wiki
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 36: | Line 36: | ||
shootthrough | shootthrough | ||
passable | passable | ||
− | + | material | |
endface # end the face | endface # end the face | ||
# | # | ||
Line 46: | Line 46: | ||
|} | |} | ||
− | Valid parameters for a mesh are | + | Valid parameters for a mesh are |
− | + | <properties> | |
− | + | name=The name of the mesh | |
− | + | vertex= this is a 'corner' of your mesh - a point where faces connect. (at least 3 are required) | |
− | + | normal= a unit vector describing the direction light will reflect off the object | |
− | + | texcoord= this is used for mapping textures onto the mesh. This will link a point of the 2-Dimensional texture to a vertex on the 3-Dimensional object. (0,0) refers to the lower left corner of the texture, (1,1) refers to the top right. Textures are defined in the [[material]] object. | |
− | + | inside= an arbitrary vertex placed on the inside of the mesh object. This keeps tanks from driving or spawning inside the object. | |
− | + | phydrv=Assign a physics driver as defined in the [[physics]] object. | |
− | + | smoothbounce=shot will ricochet from the face in the same direction as the defined normal. | |
− | + | noclusters=Render each face individually. | |
− | + | shift=places the mesh using <x y z> coordinates | |
− | + | scale=resizes the mesh along the x, y, or z axis | |
− | + | shear=repeatable | |
− | + | spin=spins the mesh <angle> number of degrees, <n> number of rotations along one or more of the x, y, or z axiis | |
− | + | matref=Assign a [[material]] to all below faces. | |
− | + | face=Start a face (required), see below: | |
− | + | </properties> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
Valid parameters within the face sub-object: | Valid parameters within the face sub-object: | ||
− | + | <properties> | |
− | + | vertices=Numbered list of vertices for this face. (requires at least three) | |
− | + | normals=Numbered list of normals for this face. | |
− | + | texcoords=Numbered list of texture coordinates for this face. | |
− | + | phydrv=Assign a [[Physics|physics driver]] to this face only. | |
− | + | smoothbounce=use normals to determine shot ricochets for this face. | |
− | + | noclusters''' | |
− | + | drivethrough=Tanks can drive through this face. | |
− | + | shootthrough=Tanks can shoot through this face. | |
− | + | passable=Tanks can both shoot and drive through this face | |
− | + | matref=Assign a [[material]] to this face. | |
− | + | </properties> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
Meshes have full support for [[Material]] (wherein custom textures can be defined) and [[Physics Drivers]]. | Meshes have full support for [[Material]] (wherein custom textures can be defined) and [[Physics Drivers]]. | ||
Line 124: | Line 88: | ||
|Simple Cube | |Simple Cube | ||
mesh | mesh | ||
− | vertex -10 -10 | + | vertex -10 -10 0 |
− | vertex | + | vertex 10 -10 0 |
− | vertex | + | vertex 10 10 0 |
− | vertex -10 | + | vertex -10 10 0 |
vertex -10 -10 10 | vertex -10 -10 10 | ||
− | vertex | + | vertex 10 -10 10 |
− | vertex | + | vertex 10 10 10 |
− | vertex -10 | + | vertex -10 10 10 |
face #south | face #south | ||
vertices 0 1 5 4 | vertices 0 1 5 4 | ||
Line 153: | Line 117: | ||
|Simple billboard with texcoords | |Simple billboard with texcoords | ||
mesh | mesh | ||
− | + | vertex -10 0 0 | |
− | + | vertex 10 0 0 | |
− | vertex | + | vertex 10 0 10 |
vertex -10 0 10 | vertex -10 0 10 | ||
texcoord 0 0 | texcoord 0 0 | ||
Line 164: | Line 128: | ||
face | face | ||
vertices 0 1 2 3 | vertices 0 1 2 3 | ||
− | + | texcoord 0 1 2 3 | |
endface | endface | ||
face #backside | face #backside | ||
vertices 1 0 3 2 | vertices 1 0 3 2 | ||
− | + | texcoord 1 0 3 2 | |
endface | endface | ||
end #mesh | end #mesh | ||
|Simple Jump-through floor | |Simple Jump-through floor | ||
mesh | mesh | ||
− | vertex | + | vertex 0 0 9 |
− | vertex 10 | + | vertex 10 0 9 |
− | vertex 10 10 | + | vertex 10 10 9 |
− | vertex | + | vertex 0 10 9 |
− | vertex | + | vertex 0 0 10 |
− | vertex 10 | + | vertex 10 0 10 |
vertex 10 10 10 | vertex 10 10 10 | ||
− | vertex | + | vertex 0 10 10 |
face #south | face #south | ||
vertices 0 1 5 4 | vertices 0 1 5 4 | ||
− | |||
endface | endface | ||
face #east | face #east | ||
vertices 1 2 6 5 | vertices 1 2 6 5 | ||
− | |||
endface | endface | ||
face #north | face #north | ||
vertices 2 3 7 6 | vertices 2 3 7 6 | ||
− | |||
endface | endface | ||
face #west | face #west | ||
vertices 3 0 4 7 | vertices 3 0 4 7 | ||
− | |||
endface | endface | ||
face #bottom | face #bottom | ||
Line 206: | Line 166: | ||
end #mesh | end #mesh | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
==Editor Support== | ==Editor Support== |