"No one can be told what GeeXLab is, you have to see it for yourself!"

"Stop Playing Games and Start Making Them! With GeeXLab, your are on your way!"


Quick Links
What is GeeXLab
Download GeeXLab
GeeXLab Requirements
Online Help
Articles and Tutorials
Samples Screenshots
Videos

GeeXLab Changelog

XML Ref. Guide
Scripting Ref. Guide
Code Samples

Purchase GeeXLab
GeeXLab SDK

Shader Library

Follow GeeXLab's News
GeeXLab news, articles, tutorials and demos @ Geeks3D.com
GeeXLab @ Twitter GeeXLab RSS Feed

Subscribe to GeeXLab news by email

[ Back to Geeks3D.com ]

GeeXLab

GeeXLab

Laboratory for Real Time 3D Programming (prototyping and demos)
OpenGL, Lua, Python, GLSL,
PhysX and more...

Reference Guide
XML Nodes



Back to homepage
Back to Developer's Guide Index

<texture> XML Node


XML Node Summary
<texture
  name=""
  filename=""
  pixel_format="RGBA"
  filtering_mode="LINEAR"
  anisotropy="1.0"
  addressing_mode="WRAP"
  function_type="MODULATE"
  gen_coord_mode="NONE"
  type="TEXTURE_2D"
  s3tc="FALSE"
  play_avi="TRUE"
  vertical_flip="FALSE"
  horizontal_flip="FALSE"
  perlin_noise="FALSE"
  mipmapping="TRUE"
  >
  <cube_map
    face="XPOS"
    filename=""
    uv_map_op="NO_SWAP"
    >
  </cube_map>
  <perlin_noise_params
    min_color_r="0.0"
    min_color_g="0.0"
    min_color_b="0.0"
    min_color_a="0.0"
    max_color_r="1.0"
    max_color_g="0.0"
    max_color_b="0.0"
    max_color_a="1.0"
    amplitude="200.0"
    frequency="15.0"
    >
  </perlin_noise_params>
  <size
    width="256"
    height="256"
    >
  </size>
  <inject_opacity_map
    filename=""
    >
  </inject_opacity_map>
</texture>


<texture>

Description
The texture node allows to create and load textures from image files. Texturing is one of the most important operations in real time 3D.

texture element has 15 attributes and 4 sub-element(s)

Attributes
  • name [STRING]: Name of the texture object
  • filename [STRING]: Name of the texture's file. Path is relative to the scene main file.
  • pixel_format [STRING]: Texture data pixel format. This is the data stored on system memory and not the pixmap uploaded to graphics memory. - Default value = RGBA - Values = RGB | BGR | RGBA | BGRA | RGBA_FLOAT | RGBA_16F | RGBA_32F
  • filtering_mode [STRING]: Texture filtering mode. - Default value = LINEAR - Values = NONE | LINEAR | TRILINEAR
  • anisotropy [REAL]: Texture anisotrpic filtering value. - Default value = 1.0
  • addressing_mode [STRING]: Texture addressing mode. - Default value = WRAP - Values = WRAP | MIRROR | CLAMP
  • function_type [STRING]: Texture function for fixed pipeline operations. - Default value = MODULATE - Values = MODULATE | REPLACE | ADD | ADD_SIGNED | SUB | BLEND | INTERPOLATE_CONSTANT | INTERPOLATE_TEXTURE_ALPHA
  • gen_coord_mode [STRING]: Specifies the way uv texture coordinates are automatically generated. - Default value = NONE - Values = NONE | SPHERE_ENV_MAP | CUBE_ENV_MAP
  • type [STRING]: Texture type. - Default value = TEXTURE_2D - Values = TEXTURE_1D | TEXTURE_2D | TEXTURE_RECTANGLE_2D | TEXTURE_CUBE_MAP
  • s3tc [BOOLEAN]: Enables (TRUE) or disables (FALSE) the creation of a compressed S3TC texture (DXT1 or DXT5). - Default value = FALSE - Values = TRUE|FALSE
  • play_avi [BOOLEAN]: Enables (TRUE) or disables (FALSE) the playing of an AVI animated texture. - Default value = TRUE - Values = TRUE|FALSE
  • vertical_flip [BOOLEAN]: Allows to vertically flip the texture. - Default value = FALSE - Values = TRUE|FALSE
  • horizontal_flip [BOOLEAN]: Allows to hozizontally flip the texture. - Default value = FALSE - Values = TRUE|FALSE
  • perlin_noise [BOOLEAN]: Enables (TRUE) the generation of a noise texture using Perlin noise. - Default value = FALSE - Values = TRUE|FALSE
  • mipmapping [BOOLEAN]: Enables (TRUE) autimatic mip maps generation. - Default value = TRUE - Values = TRUE|FALSE

<cube_map>

Description
Sets a cubemap face.

cube_map element has 3 attributes and 0 sub-element(s)

Attributes
  • face [STRING]: Cubemap face - Default value = XPOS - Values = XPOS | XNEG | YPOS | YNEG | ZPOS | ZNEG
  • filename [STRING]: Texture file (relative path) for this face
  • uv_map_op [STRING]: Allows to change face texture coordinates - Default value = NO_SWAP - Values = NO_SWAP | SWAP_U | SWAP_V | SWAP_UV

<perlin_noise_params>

Description
Sets the Perlin noise parameters.

perlin_noise_params element has 10 attributes and 0 sub-element(s)

Attributes
  • min_color_r [REAL]: Minimun red color value - Default value = 0.0
  • min_color_g [REAL]: Minimun green color value - Default value = 0.0
  • min_color_b [REAL]: Minimun blue color value - Default value = 0.0
  • min_color_a [REAL]: Minimun alpha color value - Default value = 0.0
  • max_color_r [REAL]: Maximun red color value - Default value = 1.0
  • max_color_g [REAL]: Maximun green color value - Default value = 0.0
  • max_color_b [REAL]: Maximun blue color value - Default value = 0.0
  • max_color_a [REAL]: Maximun alpha color value - Default value = 1.0
  • amplitude [REAL]: Amplitude. - Default value = 200.0
  • frequency [REAL]: Frequency - Default value = 15.0

<size>

Description
Sets the texture size. This is a no-op parameter if the texture is created/loaded from a file.

size element has 2 attributes and 0 sub-element(s)

Attributes
  • width [INTEGER]: Texture's width - Default value = 256
  • height [INTEGER]: Texture's height - Default value = 256

<inject_opacity_map>

Description
Allows to inject an opacity map (RGB) in the alpha channel of the texture.

inject_opacity_map element has 1 attributes and 0 sub-element(s)

Attributes
  • filename [STRING]: Opacity map.
Random Projects

Pixelation PostFX
Pixelation PostFX

2D Shockwave Effect
2D Shockwave Effect

Phong Lighting Multiple Lights
Phong Lighting Multiple Lights


Random Code Samples

Texture - Video AVI
Texture - Video AVI

3D fonts
3D fonts

Skybox
Skybox



(C)2009-2010 Geeks3D.com