3D_TEXT

3D_TEXT N,T

CREATES A 3D TEXT AND GIVES IT THE NUMBER N AS REFERENCE

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

ACTION

The command 3D_TEXT creates a text in 3D with the specified text T and gives it a number N.

The number N is used to designate the text.

The text is placed in the plane XOY, and the lower left corner of the first character is placed in (0,0,0) : the center of the 3D world (SCENE3D).

The color of the created text is gray at creation and can be modified by the command 3D_COLOR.

The text can be moved, rotated, scaled, colored, textured, deleted, hidden, showed... with appropriated commands.

The displayed text can be changed with 3D_TEXT_CHANGE.

Remark: by default, the text is created on the first created SCENE3D, but another SCENE3D can be used. For that, create a new SCENE3D, and send it all the commands by 3D_TARGET_IS before creating the text.

SYNTAX: 3D_TEXT N,T

  • 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.
  • T = string expression to be displayed as a 3D TEXT.

USE

  • The command 3D_TEXT is used to present a text as a 3D object (a score in a game for instance).

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of 3D objects.
  • If number N is less than or equal to 0.
  • If number N is already used for another 3D object.
  • If no SCENE3D is created.
  • If T is not a correct string expression.

EXAMPLE

rem create a 3D world

scene3d 1

rem create a 3D text number 1

3D_text 1,"Hello !"

rem move the camera

cam_position 2,2,15

rem move the point aimed by camera

point_position 2,-2,0

SEE ALSO

3D_TEXT_CHANGE

3D_COLOR

3D_DELETE

3D_DELETE_ALL

3D_LOAD_TEXTURE

3D_HIDE

3D_SHOW

3D_TARGET_IS

3D_X_POSITION

3D_Y_POSITION

3D_Z_POSITION

3D_X_ROTATE

3D_Y_ROTATE

3D_Z_ROTATE

3D_X_SCALE

3D_Y_SCALE

3D_Z_SCALE