Wiki3D Turorial
From Wiki3d
Contents |
[edit] The 4 base objects
{
{ box w=50 h=100 l=200 trn(-150,0,0) color(255,0,0) }
{ cylinder r=50 h=100 trn(-50,0,0) color(0,255,0) }
{ cone r=50 h=100 trn(50,0,0) color(0,0,255) }
{ sphere r=100 f=0.5 trn(150,0,0) color(0,128,128) }
}
[edit] Object Primitives
Object's coordinates origins in the middle of its bounding box. Heigth is for the y axis, width for the x axis and length for the z axis.
- box w=width , h=heigth, l=length
- cylinder r=radius, h=heigth
- cone r=bottom radius, h=heigth
- sphere r=radius, optional - default=1 f=equator radius factor
[edit] Translations and Rotations
Rotations are expressed in degrees.
- Translation trn(x,y,z)
- Rotation rot(x,y,z)
- Origin Translation trn0(x,y,z)
[edit] Colors
Colors are described with 3 Red, Green and Blue (RGB) values in the [0..255] interval.
- color(r,g,b)
