This wiki is archived and useful information is being migrated to the main bzflag.org website

Editing Arc

Jump to: navigation, search

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 2: Line 2:
  
 
==Code==
 
==Code==
[[Image:Arcmats.jpg|right|thumb|400px|Appearance of an arc with solid color materials. The words show the names used to map materials to various sides. Obviously, the bottom matref is not shown.]]
 
 
To place an arc into your map file, the following template is suggested:
 
To place an arc into your map file, the following template is suggested:
 
{|
 
{|
Line 19: Line 18:
 
   scale 1 1 1
 
   scale 1 1 1
 
   spin angle nx ny nz
 
   spin angle nx ny nz
  texsize -2.0 -2.0 -8.0 -8.0
 
 
   phydrv physics_driver_name
 
   phydrv physics_driver_name
 
   smoothbounce
 
   smoothbounce
    
+
   matref material
  ## You can give the entire arc a single material with the lone 'matref' property,
+
  ## or you can give different parts different materials, as shown below
+
  matref material0
+
  top matref material1
+
  bottom matref material2
+
  inside matref material3
+
  outside matref material4
+
  startside matref material5
+
  endside matref material6
+
 
  end
 
  end
 
|}
 
|}
Valid parameters for an [[arc]] are:
+
Valid parameters for an [[arc]] are
{|{{Prettytable}}
+
*'''name''': defines the name of arc, often unused  
|-
+
*'''divisions''': defines the number of subdivisions in the arc
| {{Hl3}} |'''Parameter'''
+
*'''flatshading''': defines the use of flat shading, smooth is the default
| {{Hl3}} |'''Description'''
+
*'''angle''': defines the sweep of the arc, 360 indicates a full circle
|-
+
*'''ratio''': defines the ratio to make a hollow arc, the parameter is (outrad - inrad) / outrad.
| '''name''' || defines the name of arc, often unused.
+
*'''position''': defines the position of the arc in X-pos, Y-pos and the height of the arc in Z.
|-
+
*'''rotation''': defines a rotation around the Z axis for the arc, in degrees.
| '''divisions''' || defines the number of subdivisions in the arc.
+
*'''size''': defines the distance from the center to the side of the arc in X and Y, and the total height of the arc in Z.
|-
+
*'''shift''': shift the arc (repeatable)
| '''flatshading''' || defines the use of flat shading, smooth is the default.
+
*'''shear''': (repeatable)
|-
+
*'''scale''': defines the scale of the arc in x,y, and z, 1 is the default, lower values make it smaller (repeatable)
| '''angle''' || defines the sweep of the arc, 360 indicates a full circle.
+
*'''spin angle''': rotate the arc around a vector by angle. ONE of nx, ny, and nz should be 1, the others should be 0. (repeatable)
|-
+
*'''phydrv''': reference to a predefined [[physics|physics driver]].
| '''ratio''' || defines the ratio to make a hollow arc, the parameter is (outrad - inrad) / outrad.
+
*'''smoothbounce''': defines that shot bounces use normals
|-
+
*'''matref''': reference to a predefined [[material]].
| '''position''' || defines the position of the arc in X-pos, Y-pos and the height of the arc in Z.
+
|-
+
| '''rotation''' || defines a rotation around the Z axis for the arc, in degrees.
+
|-
+
| '''size''' || defines the distance from the center to the side of the arc in X and Y, and the total height of the arc in Z.
+
|-
+
| '''shift''' || shift the arc (repeatable).
+
|-
+
| '''shear''' || (repeatable).
+
|-
+
| '''scale''' || defines the scale of the arc in x,y, and z, 1 is the default, lower values make it smaller (repeatable).
+
|-
+
| '''spin angle''' || rotate the arc around a vector by angle. ONE of nx, ny, and nz should be 1, the others should be 0. (repeatable).
+
|-
+
| '''texsize''' || texture sizes, changes how the textures scale on the object. In [[BZFlag_2.4.0|2.4.x]] standard [[Box|boxes]] have "texsize -2.0 -2.0 -8.0 -8.0".
+
|-
+
| '''phydrv''' || reference to a predefined [[physics|physics driver]].
+
|-
+
| '''smoothbounce''' || defines that shot bounces use normals.
+
|-
+
| '''matref''' || reference to a predefined [[material]].
+
|}
+
  
 
==Appearance==
 
==Appearance==
The arc, by default, has the red brick wall texture on the sides, and the grey roof appearance of a normal box on the top. However, using [[material|matref]] one can change the appearance of the arc.
+
The arc, by default, has the red brick wall texture on the sides, and the grey roofs of normal boxes on the top. However, using [[matref]], one can change the appearance of the arc.
  
 
==History==
 
==History==
Line 80: Line 47:
  
 
==Editor Support==
 
==Editor Support==
Editors that support the arc object include [[Blender]] using the [[BZWTools]], [[Wings3D]], and [[pyBZEdit]]. [[BZEdit]] and [[BZFed]] do NOT support the arcs.
+
Editors that support the arc object include [[Blender]] using the [[BZWTools]], [[Wings3D]] using the [[BZW Exporter for Wings3D]], and [[pyBZEdit]]. [[BZEdit]] and [[BZFed]] do NOT support the arcs.
  
 
[[Category:Map Making]]
 
[[Category:Map Making]]
 
[[Category:Map_Objects]]
 
[[Category:Map_Objects]]

Please note that all contributions to BZFlagWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BZFlagWiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)

Templates used on this page:

Retrieved from "https://wiki.bzflag.org/Arc"