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 / Sprite transparency

Author
Message
WebMonster
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location: Hungary
Posted: 26th Feb 2003 22:13
Hi all!
I want to do same as ghost on command makes with objects, with sprites. How can I make gh ost command on sprite 1?

load image "blah.bmp",1
sprite 1,1,1,1
--==|| LAMAS RULZ! ||=--
The home of the Lama's
QuothTheRaven
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: United States
Posted: 26th Feb 2003 22:19
I dont know if you can ghost sprites in DB, (I think this should be in the 2D forum), but my 3D suggestion would be to map the image onto a plain and ghost the plain

Darken the skies, we are God.
freak
22
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 26th Feb 2003 23:15
no it's not possible to do this with one command

you could write a function to do this manyally by mixing color values that you capture of every pixel (once with the background and once with the sprite visible)

i you understand this (my english isn't very good today)
freak
22
Years of Service
User Offline
Joined: 20th Jan 2003
Location:
Posted: 26th Feb 2003 23:16
that last sentence had to be:

i hope you understand this (my english isn't very good today)
Leade
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: United Kingdom
Posted: 1st Mar 2003 16:18
The easiest thing to do is to "Stipple Alpha" the image. This is done by making every other dot on the image Black an will give some sort of transparency. Alhough this is a extremly cheap way of doing it. you should be able to see the image underneath it.
minkus
22
Years of Service
User Offline
Joined: 18th Jan 2003
Location: My House
Posted: 1st Mar 2003 19:08
you could make it a textured plain object a few away from the camera with a ghost on the plain..

The World has no meaning - but gaming does!

Login to post a reply

Server time is: 2025-08-08 20:39:57
Your offset time is: 2025-08-08 20:39:57