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 46: | Line 46: | ||
|} | |} | ||
− | Valid parameters for a mesh are | + | Valid parameters for a mesh are |
− | + | ||
− | + | ;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 axis | |
− | + | ;drivethrough: Tanks can drive through this mesh. | |
− | + | ;shootthrough: Tanks can shoot through this mesh. | |
− | + | ;passable: Tanks can both shoot and drive through this mesh | |
− | + | ;matref: Assign a [[material]] to all below faces. | |
− | + | ;face: Start a face (required), see below: | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
Valid parameters within the face sub-object: | Valid parameters within the face sub-object: | ||
− | + | ||
− | + | ;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. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
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]]. | ||