TEXTURE LIMB This command will apply an existing end image to the limb of a 3D object as a texture.
Syntax
    TEXTURE LIMB Object Number, Limb Number, Image Number
    TEXTURE LIMB Object Number, Limb Number, Stage Number, Image Number
Parameters
    Object Number
Integer The object number
    Limb Number
Integer The limb number
    Stage Number
Integer The image number
    Image Number
Integer Specify an image number between 1 and 2415919103.
Returns
This command does not return a value.
Description
You must create an image first using the GET IMAGE command before attempting to texture part of the 3D object. The parameters should be specified using integer values. An additional texture stage index can be provided to the command to specify multi-textures directly, and is required when using shaders that take pixel data from secondary textures.
Example Code
    sync on : sync rate 60 : hide mouse:cls 0

    ObjectNumber=1

    LimbNumber=7

    rem Load object

    load object "model.x",ObjectNumber

    load image "iron.jpg",1

    while mouseclick()=0

    set cursor 0,0

    texture limb ObjectNumber,LimbNumber,1

    sync

    endwhile

    delete object ObjectNumber

    delete image 1

    end
See also
BASIC3D Commands Menu Index