SET BLEND MAPPING ON This command will set the blending map for the specified object.
Syntax
    SET BLEND MAPPING ON Object Number, Image Number, Blend Mode
    SET BLEND MAPPING ON Object Number, Stage Index, Image Number, TexCoordMode, Blend Mode
Parameters
    Object Number
Integer The object number
    Stage Index
Integer Stage Index
    Image Number
Integer Image Number
    TexCoordMode
Integer Tex Coord Mode specifies what the UV data should be
    Blend Mode
Integer Blend Mode is the mode used to create the blend effect,
Returns
This command does not return a value.
Description
Blended textures are combined with the main texture to create a multitextured object. The Texture Coord Mode specifies what the UV data should be, and the Blend Mode is the mode used to create the blend effect, modes listed below. A detailed analysis of the D3D parameters are not covered here but can be found in the latest DirectX SDK available from the Microsoft website. It is recommended you have a knowledge of UV data and DirectX blending operations before attempting to use this command. Texture Coord Mode: 0 - Regular UV Stage Match 1 - Sphere Mapping UV Data 2 - Cube Mapping UV Data 3 - Steal UV Data From Stage Zero 10-17 - Take UV Data From Stage Mode Value minus 10 Blend Mode: 1 - D3DTOP_DISABLE 2 - D3DTOP_SELECTARG1 3 - D3DTOP_SELECTARG2 4 - D3DTOP_MODULATE 5 - D3DTOP_MODULATE2X 6 - D3DTOP_MODULATE4X 7 - D3DTOP_ADD 8 - D3DTOP_ADDSIGNED 9 - D3DTOP_ADDSIGNED2X 10 - D3DTOP_SUBTRACT 11 - D3DTOP_ADDSMOOTH 12 - D3DTOP_BLENDDIFFUSEALPHA 13 - D3DTOP_BLENDTEXTUREALPHA 14 - D3DTOP_BLENDFACTORALPHA 15 - D3DTOP_BLENDTEXTUREALPHAPM 16 - D3DTOP_BLENDCURRENTALPHA 17 - D3DTOP_PREMODULATE 18 - D3DTOP_MODULATEALPHA_ADDCOLOR 19 - D3DTOP_MODULATECOLOR_ADDALPHA 20 - D3DTOP_MODULATEINVALPHA_ADDCOLOR 21 - D3DTOP_MODULATEINVCOLOR_ADDALPHA 22 - D3DTOP_BUMPENVMAP 23 - D3DTOP_BUMPENVMAPLUMINANCE 24 - D3DTOP_DOTPRODUCT3 25 - D3DTOP_MULTIPLYADD 26 - D3DTOP_LERP
Example Code
    cls rgb(100,100,255) : ink rgb(255,255,255),0 : box 10,10,22,22 : get image 1,0,0,32,32

    cls rgb(255,100,100) : ink rgb(255,255,0),0 : for r=1 to 15 : circle 16,16,r : next r : get image 2,0,0,32,32

    make object sphere 1,1,5,5

    texture object 1,1

    wait key

    D3DTOP_MODULATE=4 : set blend mapping on 1,2,D3DTOP_MODULATE

    wait key
See also
BASIC3D Commands Menu Index