3D_LOAD_TEXTURE_RIGHT

3D_LOAD_TEXTURE_RIGHT N,F

APPLIES TO THE RIGHT FACE OF THE OBJECT 3D_SKYBOX NUMBER N THE TEXTURE IN THE FILE F

  • Type: Command
  • Parameters: 2
  • Group: 3D Objects

ACTION

The command 3D_LOAD_TEXTURE_RIGHT N,F assigns a texture to the right face of an existing object 3D_SKYBOX.

The texture is in the file F.

The file must be in BMP format (Bitmap).

SYNTAX: 3D_LOAD_TEXTURE_RIGHT N,F

  • N = 3D object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of 3D objects.
  • F = (absolute or relative) name of the file containing the texture

USE

  • The command is used to give a right texture to a 3D_SKYBOX.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of 3D objects.
  • If number N is not greater than 0.
  • If 3D object number N does not exist.
  • If number N does not correspond to a 3D_SKYBOX.
  • If F is not a correct string expression.
  • If file F does not exist.

EXAMPLE

rem create a 3D world

scene3d 1

rem create a 3D_SKYBOX

3d_skybox 1

rem give it a bottom texture

3d_load_texture_bottom 1,"bottom.bmp"

rem give it a top texture

3d_load_texture_top 1,"top.bmp"

rem give it a front texture

3d_load_texture_front 1,"front.bmp"

rem give it a back texture

3d_load_texture_back 1,"back.bmp"

rem give it a right texture

3d_load_texture_right 1,"right.bmp"

rem give it a left texture

3d_load_texture_left 1,"left.bmp"

SEE ALSO

3D_LOAD_TEXTURE_BACK

3D_LOAD_TEXTURE_BOTTOM

3D_LOAD_TEXTURE_FRONT

3D_LOAD_TEXTURE_LEFT

3D_LOAD_TEXTURE_TOP

3D_SKYBOX