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 / in DBC is there a way i can change the colour of the ghost ?

Author
Message
The Jackal
21
Years of Service
User Offline
Joined: 12th Mar 2004
Location:
Posted: 24th Jun 2004 13:26
ok probably doesnt make much sense but now i have ur attention i just have to ask. i was messing around with dark basic and was looking at one of the settings in the contents of the help files. i thought i saw it say you could change the colour when you ghost a 3d object, coz now everytime when i ghost something it turns bluey !!! but i would like it to turn grey or another NOT BLUE colour.

if neone knows how i could accomplish this then PLEASE tell me thanx loads

Aj

Now this is the law of the jungle As old and true as the sky
And the wolf that shall keep if may prosper
But the wolf that shall break it must die.
Emperor Baal
21
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 24th Jun 2004 13:33
What happens if you change the backdrop color?

Snaz
21
Years of Service
User Offline
Joined: 12th Apr 2004
Location: Romania, Galatz
Posted: 24th Jun 2004 14:56
What about:

ghost object on objnr$
color object objnr4,rgb(128,128,128)


You'll have a grey transparent object
You can also use color codes to change the object's color!

phonfnd
Snaz
21
Years of Service
User Offline
Joined: 12th Apr 2004
Location: Romania, Galatz
Posted: 24th Jun 2004 14:57
a...
objnr$ is the object number

phonfnd
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 25th Jun 2004 01:32
The Jackal, the reason your object turns blue is because DB is making your object semi transparent and you can see through it to the blue backdrop. Emperor Baal and Phoenixon are leading you in the right direction, and if you are having a lot of trouble you could try some other stuff:
1. Find color opposite on the color wheel to blue and color the object that color with COLOR OBJECt
2. Put in a skybox/texture backdrop/color backdrop
3. Edit your texture in a sophisticated paint program, put the color you want the object to be tinted toward as another layer under the main one (which is the actual texture), and set the main layer's transparency a little high, and to make the object appear more ghosted turn the bottom layer's transparency up a little. Be sure to save the texture as a .png.

Crazy Donut Productions, Current Project: KillZone
Web Site Button Does Not Work, Visit Here: http://www.geocities.com/crazydonutproductions/index.html
DARKGuy
21
Years of Service
User Offline
Joined: 28th Nov 2003
Location:
Posted: 25th Jun 2004 03:46
hehe I was gonna ask this too . One thing I don't understand is what Bear says, I just don't get well the explanation could you clarify it a bit please?

BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 25th Jun 2004 11:10
You might get some of this already, but I'm just gonna make sure.
Basically when an object is made to look ghosted in 3d the textures are modified so that every so many pixels there is a blank one that is drawn transparent, imagine it like a screen door. So when the background is blue, you can see it through those transparent spots and the object appears to be tinted blue, or whatever image/color is in the backdrop.

1. With the color wheel there are colors opposite each other so that when combined they form, grey or white or nothing-color (???) I don't know the science behind it.

3. Say you have a blue backdrop and you want to ghost your object. Your object will be tinted blue because of what I explained above. You can still achieve a ghosting effect without this limitation.

Take your texture and put it on a single layer in a painting program (something like Paint Shop or Photo Shop). Then create a layer "behind" it (so that this layer is drawn first, then the layer with the texture in it on top of that). Put whatever image or color you want to be in the "background" of your ghosted object let's use my grandma's smiling face for example. That's my background image.

Next I adjust the opacity of the other layer (which has the actual texture of it, say it's a yellow smiley face which will be wrapped onto a sphere)to make it so that the background image bleeds through more. When displayed in 3d we have a yellow smiley face ball that has a vague shadow of my grandmother's face smiling out the side of it.

Say you want to have a "ghosted background" like we did above and still make your object transparent to the objects/backdrop inside your db game. Then just reduce the opacity of the texture layer more, and then reduce the opacity of the background image. This will create a bunch of smaller blank spots. Be sure to save this as a .png so DB can automatically handle transparency which creates the ghosting effect without having to use GHOST OBJECT ON.

Crazy Donut Productions, Current Project: KillZone
Web Site Button Does Not Work, Visit Here: http://www.geocities.com/crazydonutproductions/index.html

Login to post a reply

Server time is: 2025-05-24 19:31:05
Your offset time is: 2025-05-24 19:31:05