SCALE LIMB TEXTURE This command will scale the UV data of the specified limb of the 3D object.
Syntax
    SCALE LIMB TEXTURE Object Number, Limb Number, UScale, VScale
    SCALE LIMB TEXTURE Object Number, Limb Number, Stage, UScale, VScale
Parameters
    Object Number
Integer The object number
    Limb Number
Integer The limb number
    Stage
Integer The U value controls the horizontal spread of the data,a value of 1 means no scale change. A value of 0.5 will scale the texture by half. A value of 2.0 will double the scale of the texture
    UScale
Float The V value controls the vertical spread of the data, a value of 1 means no scale change. A value of 0.5 will scale the texture by half. A value of 2.0 will double the scale of the texture
    VScale
Float This value is a float number such as 0.5
Returns
This command does not return a value.
Description
The UV data controls how a texture is mapped onto your object. By scaling the UV data, you can effectively stretch or tile the texture over your object. The U value controls the horizontal spread of the data. The V value controls the vertical spread of the data. A U or V value of 1 means no scale change. A value of 0.5 will scale the texture by half. A value of 2.0 will double the scale of the texture. The scale effect is permanent. Ensure that the image you use fills the whole texture, so using a texture flag of one with LOAD IMAGE will cause visual artefacts!
Example Code
    sync on : sync rate 60 : hide mouse:cls 0

    ObjectNumber=1

    LimbNumber=7

    load object "model.x",ObjectNumber

    load image "iron.jpg",1

    while mouseclick()=0

    scale limb texture ObjectNumber,LimbNumber,0.5,0.5

    sync

    endwhile

    delete object ObjectNumber

    delete image 1

    end
See also
BASIC3D Commands Menu Index