Difference between revisions of "Canvas 3D - Texture Tag"

From CDOT Wiki
Jump to: navigation, search
 
Line 5: Line 5:
 
== Introduction ==
 
== Introduction ==
  
Intro.
+
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 ==
 
== Tag Attributes ==
  
 
* id
 
* 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
 
* 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 ==
 
== Syntax ==
  
 
<pre>
 
<pre>
Syntax Goes Here
+
<canvas>
 
+
<texture href="file:///foo.tga" id="mytexture" />
 +
</canvas>
 
</pre>
 
</pre>
  

Latest revision as of 18:49, 20 October 2006

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