Changes

Jump to: navigation, search

Canvas 3D - Mesh Tag

1,096 bytes added, 17:58, 20 October 2006
no edit summary
== Introduction ==
IntroMeshes are a complex array of vertecies that make up a 3D shape. Much like thier primitive counterpart, a mesh shares the same types of attributes. These attributes set the mesh in 3D space and allow it to be manipulated within JavaScript.
== Tag Attributes ==
* name
** '''Usage:''' <mesh name="mymesh" />
** The ''name'' attribute specifies the identifier so that the mesh can be referenced within JavaScript. This is an alpha numeric String.
** If this value is ommited, the Mesh will not be accessable within JavaScript.
* href
** '''Usage:''' <mesh href="http://foo.com/bar.mesh" />.
** The ''href'' attribute is a hyperlink reference to a mesh file.
** This attribute is mandatory.
* position
** '''Usage:''' <mesh position="0.0, 8.3, 2.4" />.
** The ''position'' attribute refers to the 3D co-ordinates at which the model is located.
** If this attribute is ommited, the default position is {0.0, 0.0, 0.0}.
* orientation
** '''Usage:''' <mesh orientation="0.0, 3.5, 2.5" />.
** The ''orientation'' attribute is the direction the model is facing.
** If the orientation attribute is ommited, then the default orientation vector is {0.0, 0.0, -1.0}.
* size
1
edit

Navigation menu