Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / DBP Ignore ghost mode? Fadeout and blinking effect based on (fade + ghost) commands.

Author
Message
Unlocker
13
Years of Service
User Offline
Joined: 26th Jul 2012
Location:
Posted: 20th Oct 2012 06:04
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):



Whats wrong? :-| Is it stranges of DBP or i try wrong conception or do some mistake? help!?

the truth is out there
Unlocker
13
Years of Service
User Offline
Joined: 26th Jul 2012
Location:
Posted: 20th Oct 2012 17:00 Edited at: 20th Oct 2012 18:24
okay. try to explain in easy words for texture from 1st post attachment

1. ghost command not work, if i want black logo fade to green

ghost object on 1,0
fade object 1,50


2. ghost command work, if i want white logo fade to green

ghost object on 1,1
fade object 1,50

why?

the truth is out there
Unlocker
13
Years of Service
User Offline
Joined: 26th Jul 2012
Location:
Posted: 20th Oct 2012 18:34
For anyone who intereseted subject, code example from 1 post is work without mistakes, but may be it shows wrong way to meke fade out effect of BLACK logo.

So may be it's because of the features of "fade command".

fade object 1,200 - mean that object is white.
And when i use BLACK-WHITE texture and use ghost object on 1,0 (transparent white) - i get correct result and see only black logo.

but...

fade object 1,0 - mean that object is black.
ghost object on 1,0 - i get wrong result, object not disappeared because plane is not white anymore and ghost mode not in deal.

This work excelent if i want to fade out White content with ghost object on 1,1.

So if it's not right way, how can we fade out transparent Black logo and text using textures and planes in green/red/blue BG?

the truth is out there
Unlocker
13
Years of Service
User Offline
Joined: 26th Jul 2012
Location:
Posted: 20th Oct 2012 20:47
After some hours of experiments i go to read documentation of DBP.

Only a noob like me could use "fade object" instead "set alpha mapping on".

the truth is out there
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 21st Oct 2012 00:37
Quote: "After some hours of experiments i go to read documentation of DBP"


Never give up !!

Try to EDIT your post to make it more legible

Cheers

I'm not a grumpy grandpa
Unlocker
13
Years of Service
User Offline
Joined: 26th Jul 2012
Location:
Posted: 21st Oct 2012 03:11
Quote: "Never give up !!"


Thanx ))

Quote: "Try to EDIT your post to make it more legible "


To do this i must read "documentation" on "english grammar" firstly

i tried explain as i could

anyway i solved subject: set alpha mapping on - is a realy right way to make simple fade effects.

the truth is out there
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 21st Oct 2012 03:24
Ohh no !! Your grammar is right...I meant try no to double post until someone answer your post !!

Cheers.

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2026-07-07 11:46:51
Your offset time is: 2026-07-07 11:46:51