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 Discussion / various ghost levels

Author
Message
3beth
21
Years of Service
User Offline
Joined: 13th Feb 2004
Location: Good ole Kentucky
Posted: 15th Dec 2004 03:33
Can you vary the intensity of the ghost command as in transparency?
If so what is the cod?

Beth

Beth=The ditsy blonde. I like men and programming, but mainly programmed men!
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 15th Dec 2004 04:36 Edited at: 15th Dec 2004 04:36
Sadly, there is no direct command to vary the level of ghosting on an object. However, there is a work around that can create this effect. You may or may not want to do it, but this is what you have to do:

Do this stuff in the setup:
-Turn the ambient light off
-Create a light source, it can be a directional or a point light, whatever suits your program better
-Ghost your object

Do this in your program to fade your object
-Set the level of fading by using the command 'fade object objectnum,fadelevel'. This will cause your object to be affected by the light in varied amounts, causing it to appear transparent at different levels. Use lower numbers to make it more transparent, higher levels to make it more solid.

The problem with this method is that you can't have ambient light, so the light is not coming from the same source all the time. Your object may appear a little bit brighter or more transparent, depending on what angle it is facing, but at least it works. This is how I fade the special effects in my game.

Hope it helps

Xander Moser - Bolt Software - Firewall
3beth
21
Years of Service
User Offline
Joined: 13th Feb 2004
Location: Good ole Kentucky
Posted: 15th Dec 2004 07:09
Thanks Bolt,

I just downloaded the dbpro trial version, and can't get the trial password to activate it.(major bummer) from the db site no one seems to know it. I am having a bad day but thanks a lot for the help.

sincerely,
Beth

Beth=The ditsy blonde. I like men and programming, but mainly programmed men!
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 15th Dec 2004 07:59
Dang, wish I could help with the password, but I don't know anything about that. I didn't even know it had a password on it, is it a special trial version?

Do you want an example with the fading? I could write one up for you if you want.

Hope your day gets better

Xander Moser - Bolt Software - Firewall

Login to post a reply

Server time is: 2025-05-24 08:02:21
Your offset time is: 2025-05-24 08:02:21