Mirage Engine
Changing Transparency Color - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49)
+---- Thread: Changing Transparency Color (/showthread.php?tid=351)



Changing Transparency Color - halla - 05-10-2006

Ok I was told before I beleive the first pixel on the image sets the transparency but that doesnt work.. I change the first and it shows the color then. Im talking about for tiles.bmp or sprites.bmp

I want to change the transparency color from black because black is used a lot and thats stupid.

Thanks.


- Misunderstood - 05-10-2006

in modDirectX look for where it sets the key. Change that value to whatever.


- halla - 05-10-2006

Ok why are they 0's... I know black but isnt there more than 1 zero for that

Code:
' Set the key for masks
    With Key
        .low = 0
        .high = 0
    End With

nevermind I take it that its using the color constant for black

ok after trying that... its not that as that doesnt work.


- Krloz - 05-10-2006

theres a tut in old forums I would search but I gtg class is done xP


- halla - 05-10-2006

Its fine I figured it out. It was working what I had someone is helping now and they had something changed I fixed it.


- Misunderstood - 05-10-2006

for others that don't know, its the rgb long value.
both low and high should be the same.


Re: Changing Transparency Color - Gawian - 04-12-2007

Two notes:
- I know this the old forum
- I know he said the hint how to get it above but I still can't get it to work

my code:
Code:
' Set the key for masks
    With Key
        .low = RGB(0, 117, 117)
        .high = RGB(0, 117, 117)
    End With



Re: Changing Transparency Color - Rezeyu - 04-12-2007

Theres a tutorial on THIS forum for this.. and it does work, I've used it in every source I have.

EDIT: here it is, it's tested and works.
http://web.miragesource.com/forums/viewtopic.php?f=75&t=932


Re: Changing Transparency Color - Gawian - 04-12-2007

indeed it does, thanks for the help Smile