Geeks3D latest news

FurMark
Current Version: 1.10.1
»FurMark homepage
»FurMark 1.9.x Submissions

GPU Caps Viewer
Current Version: 1.16.0
»GPU Caps Viewer homepage
»GPU DB Submissions

PhysX FluidMark
Current Version: 1.5.0
»FluidMark homepage
»FluidMark 1.4.x Submissions

GeeXLab
Current Version: 0.3.3
»GeeXLab homepage
»GeeXLab Overview

GPU Shark
Current Version: 0.6.3
»GPU Shark homepage

TessMark
Current Version: 0.3.0
»TessMark homepage

ShaderToyMark
Current Version: 0.3.0
»ShaderToyMark homepage
»ShaderToyMark Scores

Blogs
»JeGX's HackLab

Geeks3D's Articles
»GPU Memory Speed Demystified

»Multi-Threading Programming Resources

»GeForce and Radeon OpenCL Overview

»How to Get your Multi-core CPU Busy at 100%

»How To Make a VGA Dummy Plug

»Night Vision Post Processing Filter


Demoniak3D
Current Version: 1.23.0
»Demoniak3D
»Download
»Libraries and Plugins
»Demos
»Online Help - Reference Guide
»Codes Samples

Language

Language:

3D Graphics Search Engine:

The Geeks Of 3D


 
oZone3D.Net - Demoniak3D Developer Guide


» Back To Index

The <skybox> node

Function

The skybox node allows to create a skybox. A skybox is a cube made up of 6 images (textures) of which the 6 internal faces are displayed behind all the other objects of the 3d scene, thus giving the illusion of a realistic 3d environment. The center of the skybox is aligned on the position of the camera making it impossible to reach the edges of the skybox.

General syntax

<skybox
	name=""
	render="TRUE" >

	<xneg_face
		filename=""
		uv_map_op="NO_SWAP" />

	<xpos_face
		filename=""
		uv_map_op="NO_SWAP" />

	<yneg_face
		filename=""
		uv_map_op="NO_SWAP" />

	<ypos_face
		filename=""
		uv_map_op="NO_SWAP" />

	<zneg_face
		filename=""
		uv_map_op="NO_SWAP" />

	<zpos_face
		filename=""
		uv_map_op="NO_SWAP" />
</skybox>

skybox element

skybox is the xml tag that defines a skybox node.

Attributes:
  • name - [STR127] - name of the node. This name will make it possible to refer this node throughout the XML script.

  • render - [BOOLEAN] - displays (TRUE) or hides (FALSE) the skybox - default value: TRUE

  • group - [STR127] - name of the group in which to add the current node. A group makes it possible to control the behavior of several objects in a single way.

xpos_face element

xpos_face specifies the texture (image) located on the right (along the x axis in the positive direction). This tag has only xml attributes.

Attributes:
  • filename - [STR255] - location of the texture file of the cubemap face. The path is relating to the xml script.
  • uv_map_op - [ENUM] - specifies the operation to be performed on the texture coordinates in order to correct the texture direction:
    • NO_SWAP: operation without effect: leave the textures coordinates unchanged - default value
    • SWAP_U: inverts the U coordinates: texture is reversed in relation to the axis of the Y.
    • SWAP_V: inverts the V coordinates: texture is reversed in relation to the x axis.
    • SWAP_UV: inverts the U and V coordinates: texture is reversed in relation to the Y and X axis.

xneg_face element

xneg_face specifies the texture (image) located on the left (along the x axis in the negative direction). This tag has only xml attributes:

Attributes:
  • filename - [STR255] - location of the texture file of the cubemap face. The path is relating to the xml script.
  • uv_map_op - [ENUM] - specifies the operation to be performed on the texture coordinates in order to correct the texture direction:
    • NO_SWAP: operation without effect: leave the textures coordinates unchanged - default value
    • SWAP_U: inverts the U coordinates: texture is reversed in relation to the axis of the Y.
    • SWAP_V: inverts the V coordinates: texture is reversed in relation to the x axis.
    • SWAP_UV: inverts the U and V coordinates: texture is reversed in relation to the Y and X axis.

ypos_face element

ypos_face specifies the texture (image) located in top (along the y axis in the positive direction). This tag has only xml attributes:

Attributes:
  • filename - [STR255] - location of the texture file of the cubemap face. The path is relating to the xml script.
  • uv_map_op - [ENUM] - specifies the operation to be performed on the texture coordinates in order to correct the texture direction:
    • NO_SWAP: operation without effect: leave the textures coordinates unchanged - default value
    • SWAP_U: inverts the U coordinates: texture is reversed in relation to the axis of the Y.
    • SWAP_V: inverts the V coordinates: texture is reversed in relation to the x axis.
    • SWAP_UV: inverts the U and V coordinates: texture is reversed in relation to the Y and X axis.

yneg_face element

yneg_face specifies the texture (image) located in bottom (along the y axis in the negative direction). This tag has only xml attributes:

Attributes:
  • filename - [STR255] - location of the texture file of the cubemap face. The path is relating to the xml script.
  • uv_map_op - [ENUM] - specifies the operation to be performed on the texture coordinates in order to correct the texture direction:
    • NO_SWAP: operation without effect: leave the textures coordinates unchanged - default value
    • SWAP_U: inverts the U coordinates: texture is reversed in relation to the axis of the Y.
    • SWAP_V: inverts the V coordinates: texture is reversed in relation to the x axis.
    • SWAP_UV: inverts the U and V coordinates: texture is reversed in relation to the Y and X axis.

zpos_face element

zpos_face specifies the texture (image) located behind the camera (face) - along the axis of Z in positive direction. This tag has only xml attributes:

Attributes:
  • filename - [STR255] - location of the texture file of the cubemap face. The path is relating to the xml script.
  • uv_map_op - [ENUM] - specifies the operation to be performed on the texture coordinates in order to correct the texture direction:
    • NO_SWAP: operation without effect: leave the textures coordinates unchanged - default value
    • SWAP_U: inverts the U coordinates: texture is reversed in relation to the axis of the Y.
    • SWAP_V: inverts the V coordinates: texture is reversed in relation to the x axis.
    • SWAP_UV: inverts the U and V coordinates: texture is reversed in relation to the Y and X axis.

zneg_face element

zneg_face specifies the texture (image) located in front of the camera (back) - along the axis of Z in the negative direction. This tag has only xml attributes:

Attributes:
  • filename - [STR255] - location of the texture file of the cubemap face. The path is relating to the xml script.
  • uv_map_op - [ENUM] - specifies the operation to be performed on the texture coordinates in order to correct the texture direction:
    • NO_SWAP: operation without effect: leave the textures coordinates unchanged - default value
    • SWAP_U: inverts the U coordinates: texture is reversed in relation to the axis of the Y.
    • SWAP_V: inverts the V coordinates: texture is reversed in relation to the x axis.
    • SWAP_UV: inverts the U and V coordinates: texture is reversed in relation to the Y and X axis.



Page generated in 0.056130886077881 seconds.