This wiki is archived and useful information is being migrated to the main bzflag.org website
Editing DrawInfo
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 1: | Line 1: | ||
− | DrawInfo allows clients to render | + | DrawInfo allows clients to render mesh more efficiently through LODs (Level of Detail). Many associate drawinfo with the ability to create moving objects in a map. |
==Code== | ==Code== | ||
The code must be added to the mesh object. | The code must be added to the mesh object. | ||
Line 35: | Line 35: | ||
Valid parameters for drawinfo are: | Valid parameters for drawinfo are: | ||
− | + | <properties> | |
− | + | dlist= | |
− | + | decorative=disables drawinfo in older clients | |
− | + | angvel=causes the mesh object to spin at a given rate | |
− | + | extents= | |
− | + | sphere= | |
− | + | corner=this is a series of points specified by the indexes of the vertices, normals, and texcoords | |
− | + | vertex= | |
− | + | normal= | |
− | + | texcoord= | |
− | + | lod=sections that determine which faces/points will be rendered at specified distances (lengthPerPixel) | |
− | + | lengthPerPixel=distance from which the points will be rendered, 0 is close, .3 is about as far away as is needed | |
− | + | matref=material to use as defined in the materials object | |
− | + | points= | |
− | + | lines= | |
− | + | lineloop= | |
− | + | linestrip= | |
− | + | tris=index numbers of corners that create triangles | |
− | + | tristrip=series of points that form a chain of triangles. | |
− | + | trifan= a series of points that create triangles that fan out from a single point. That point, usually in the center, is placed first in the series. Trifans are used only in pyramid and cone-shaped meshes. | |
− | + | quads=points that create 4-sided mesh planes | |
− | + | quadstrip=series of points that create a chain of 4-sided planes. Similarly to tristrips, the series zig-zags between the points, starting in the counter-clockwise direction. | |
− | + | polygon=same as quads except for planes of more than 4 sides. | |
− | + | </properties> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
==Appearance== | ==Appearance== | ||
− | DrawInfo is only applied to existing | + | DrawInfo is only applied to existing meshes. If you look closely in places like Louman's Mystic Valley, shrubbery and trees will change in appearance slightly when viewed from about 200 units away. |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
==Editor Support== | ==Editor Support== | ||
− | + | There is currently no support for drawInfo except for hand-editing | |
==History== | ==History== | ||
− | DrawInfo was added (by trepan) | + | DrawInfo was only recently added (by trepan) and is rarely used for anything other than experimental and proof-of-concept maps. Notable exceptions to this are: Louman's Mystic Valley, and Louman's Churchyard. |
− | + | ||
− | + | ||
− | + |