Quote: "Pitch Black(0) is transparent in DB "
Yes - when transparency is set ON in 3d, sprites, and images.
Example of an image with transparency:
sync on
sync rate 60
ink 255,0
box 0,0,100,100
ink 0,0
box 25,25,75,75
get image 1,0,0,101,101
ink rgb(255,255,255),0
rem move image around screen
do
cls rgb(100,100,100)
center text screen width()/2,screen height()/2,"Can you see This through the square?"
if upkey()=1 then y=y-2
if downkey()=1 then y=y+2
if leftkey()=1 then x=x-2
if rightkey()=1 then x=x+2
rem paste image with transparency
paste image 1,x,y,1
sync
loop
For 3d, for pure transparency (where ever the image is black) use SET OBJECT - for translucency (alpha blending) use GHOST OBJECT ON - and reduce the ambient light and use FADE OBJECT to affect the translucency of the object.
If you want to get real fancy, code a crossfader or alpha blender. In the main DarkBASIC folder, there is a subfolder called extras. If you have DarkBASIC enhanced you can use TransitionMaker to do screen effects like crossfading among other things.
Enjoy your day.