Editing Sphere

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: Server migration

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:Sphere.png|right|frame|300px|Appearance of a simple sphere.]]
+
[[Image:Sphere.png|right|frame|300px|Sphere Appearance]]
 
+
The code to place a sphere in your map is as follows:
This is a reference of all the options available in a sphere object with parameters.
+
 
{|
 
{|
 
|
 
|
 
  sphere
 
  sphere
   name OBJECT_NAME
+
   name example_sphere
 
   divisions 4
 
   divisions 4
 
   flatshading
 
   flatshading
  hemisphere
+
   position 0 0 10
   position X Y Z
+
   size 10 10 10
   size X Y Z
+
   radius 10
   radius RADIUS
+
   rotation 0
   rotation ANGLE
+
   shift 0 0 0
   shift X Y Z
+
   scale 0 0 0
   scale X Y Z
+
   shear 0 0 0
   shear X Y Z
+
   spin angle nx ny nz
   spin ANGLE NORMAL_X NORMAL_Y NORMAL_Z
+
   phydrv example_phydrv
   phydrv PHYSICS_NAME
+
 
   smoothbounce
 
   smoothbounce
   matref MATERIAL_NAME
+
   matref example_material
 
  end
 
  end
 
|}
 
|}
 
+
Valid properties for a [[sphere]] are
Valid parameters for a [[sphere]] are:
+
<properties>
{|{{Prettytable}}
+
name=defines the name of the sphere, it is not required, and often unused
|-
+
divisions=defines the number of subdivisions (pieces) of the sphere
| {{Hl3}} |'''Parameter'''
+
flatshading=enables flat shading, smooth shading is the default
| {{Hl3}} |'''Description'''
+
position=defines the center point of the sphere
|-
+
size=defines the size of the sphere
| '''name''' || defines the name of the sphere, it is not required, and often unused.
+
radius=sets all size values to the same value
|-
+
rotation=defines rotation for the sphere
| '''divisions''' || defines the number of subdivisions (pieces) of the sphere.
+
shift=shifts the sphere (repeatable)
|-
+
scale=scales the sphere (repeatable)
| '''flatshading''' || enables flat shading, smooth shading is the default.
+
shear=shears the sphere (repeatable)
|-
+
spin=spins the sphere around vector n (repeatable)
| '''hemisphere''' || only draw the top half of the sphere.
+
phydrv=attaches a physics driver to the sphere
|-
+
smoothbounce=makes ricochets use normals
| '''position''' || defines the center point of the sphere.
+
matref=defines a material for the sphere to use
|-
+
</properties>
| '''size''' || defines the size of the sphere.
+
|-
+
| '''radius''' || sets all size values to the same value.
+
|-
+
| '''rotation''' || defines rotation for the sphere.
+
|-
+
| '''shift''' || shifts the sphere (repeatable).
+
|-
+
| '''scale''' || scales the sphere (repeatable).
+
|-
+
| '''shear''' || shears the sphere (repeatable).
+
|-
+
| '''spin''' || spins the sphere around vector n (repeatable).
+
|-
+
| '''phydrv''' || attaches a physics driver to the sphere.
+
|-
+
| '''smoothbounce''' || makes ricochets use normals.
+
|-
+
| '''matref''' || defines a material for the sphere to use.
+
|}
+
  
 
==Appearance==
 
==Appearance==
Line 70: Line 48:
  
 
==Editor Support==
 
==Editor Support==
Editors that support the sphere object include [[Blender]] using the [[BZWTools]], [[Wings3D]], and [[pyBZEdit]]. [[BZEdit]], [[BZFed]], and [[IBZEdit]] do NOT support the sphere.
+
Editors that support the sphere object include [[Blender]] using the [[BZWTools]], [[Wings3D]] using the [[BZW Exporter for Wings3D]], and [[pyBZEdit]]. [[BZEdit]] and [[BZFed]] do NOT support the sphere.
  
 
[[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: