Canvas 3D - Texture Tag

From CDOT Wiki
Jump to: navigation, search

Cube Tag Reference

Back To XML 3D Main Page

Introduction

The Texture Tag specifies a location for a texture (an image) to be retrieved and placed on an object. The texture is used in conjunction with other primitives so that it is displayed on their faces. Skinning of a texture and position co-ordinates are not going to be included at this time.

Tag Attributes

  • id
    • Usage: <texture id="sometexture" />.
    • The id attribute gives the texture an identifier so that it may be used in conjunction with other objects.
    • This attribute is mandatory.
  • href
    • Usage: <texture href="http://foo.com/bar.tga" />.
    • The href attribute refers to the hyperlink reference where the texture file is stored.
    • This attribute is mandatory.

Syntax

<canvas>
 <texture href="file:///foo.tga" id="mytexture" />
</canvas>

References