Hi all! I try to realise conception of fade out effect and blinking effect, based on
object fade and
object ghost commands. It can be used in logo, titres and notifications showing.
I have texture with some content (text and logo).
In my experiment
White content - correct result,
but
black content - fail, because it's fade to black with whole plane, like the ghost mode is ignored.
please try this experimental code (use texture from attachment):
set display mode 640,480,32,0,0,0
sync on : sync rate 60 : color backdrop rgb(0,90,0):Autocam Off
set text size 14
ink rgb(255,255,255),0
hide mouse
load image "texture.png",1
make object plane 1,255,255
Position object 1,50,0,294
texture object 1,1
set object texture 1, 2, 1
ghost object on 1,1
k=1
fade=200
ghost=2
do
// interaction
if inkey$()="1" then ghost=0 // ghost off
if inkey$()="2" then ghost=1 // ghost 0
if inkey$()="3" then ghost=2 // ghost 1
if inkey$()="4" then ghost=3 // ...
if inkey$()="5" then ghost=4
if inkey$()="6" then ghost=5
if inkey$()="7" then ghost=6
// show info
set cursor 0,0
print "press keys [1,2,3,4,5,6,7] to change ghost mode"
print "for correct WHITE blinkng press [2],[4] or [5] for correct BLACK blinking - ????"
print ""
if ghost=0 then ghost object off 1: print "ghost object off 1"
if ghost>0 then ghost object on 1,ghost-1: print "ghost object on 1,",ghost-1
print "fade object 1,",fade
// Blinking process
fade=fade+k
if fade>200 then k=-1:fade=200
if fade<0 then k=1:fade=0
fade object 1,fade
sync
loop
end
Whats wrong? :-| Is it stranges of DBP or i try wrong conception or do some mistake? help!?
the truth is out there