I'm trying to understand correctly.
how to copy the first image in the second image and then to put an alpha channel with a third image in the second.
What am I doing wrong.
Here is my code:
sync on
sync rate 0
set display mode 1280,1024,32
global sourse as integer
sourse=1
global bhi as integer
bhi=2
global exi as integer
exi=3
global target as integer
target=10000
make object plane 1,20,20
load image "4.dds",sourse
load image "4.dds",500
load image "BH3.dds",bhi
variant=1
if variant=1
ik set filters D3DTEXF_GAUSSIANQUAD,D3DTEXF_GAUSSIANQUAD,D3DTEXF_GAUSSIANQUAD
ik create target image target,1024,1024,rgb(255,255,255)
ik paste image on image sourse,target,0,0,1024,1024
ik copy image exi,target
endif
if variant=2
ik set filters D3DTEXF_GAUSSIANQUAD,D3DTEXF_GAUSSIANQUAD,D3DTEXF_GAUSSIANQUAD
ik create image exi,1024,1024
ik paste image on image sourse,exi,0,0,1024,1024
endif
texture object 1,exi
set object transparency 1,3
do
text 5,5,str$(screen fps())
if inkey$()="1"
IK Set Blend Mode BLEND_FASTNORMAL
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="2"
IK Set Blend Mode BLEND_NORMAL
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="3"
IK Set Blend Mode BLEND_DISSOLVE
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="4"
IK Set Blend Mode BLEND_MULTIPLY
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="5"
IK Set Blend Mode BLEND_DIVIDE
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="6"
IK Set Blend Mode BLEND_SCREEN
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="7"
IK Set Blend Mode BLEND_OVERLAY
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="8"
IK Set Blend Mode BLEND_DODGE
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="9"
IK Set Blend Mode BLEND_BURN
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="b"
IK Set Blend Mode BLEND_HARDLIGHT
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="q"
IK Set Blend Mode BLEND_SOFTLIGHT
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="w"
IK Set Blend Mode BLEND_GRAINEXTRACT
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="e"
IK Set Blend Mode BLEND_GRAINMERGE
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="r"
IK Set Blend Mode BLEND_DIFFERENCE
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="t"
IK Set Blend Mode BLEND_ADDITION
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="y"
IK Set Blend Mode BLEND_SUBTRACT
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="u"
IK Set Blend Mode BLEND_DARKENONLY
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="i"
IK Set Blend Mode BLEND_LIGHTENONLY
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="o"
IK Set Blend Mode BLEND_FORCE
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()="p"
IK Set Blend Mode BLEND_FORCENOALPHA
b=rn() :ik paste image on image bhi,exi,b,b,b+32,b+32
endif
if inkey$()=" "
IK Set Blend Mode BLEND_FORCE
ik paste image on image sourse,exi,0,0,1024,1024
endif
if inkey$()="a"
IK Paste Image Channel sourse , exi, CHANNEL_ALPHA,CHANNEL_ALPHA,0,0
endif
control camera using arrowkeys 0,0.1,0.1
sync
loop
function rn()
a=rnd(255)
endfunction a
Examples are not prevented, would have.
.....already beside..... for all