Mirage Engine
Choosing 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: Choosing Transparency color? (/showthread.php?tid=526)



Choosing Transparency color? - Leighland - 23-12-2006

I think I might just be blind... or something...

I'd like to knwo how I can choose the transparency color for my maps. IE: Instead of black, pink?


- Dragoons Master - 23-12-2006

Sub InitSurfaces:
find this:
Code:
' Set the key for masks
    Key.low = 0
    Key.high = 0
I'm not a 100% of how it works, I never realy changed it but it's a range, probly it vbcollors, so type vb+Ctrl+Space and try to change from collor to collor, I'm not a 100% sure it that will work.


- Dragoons Master - 23-12-2006

Magenta should be RGB(255, 0, 255)
I'm not a 100% sufe if that is magenta, my english sux xD


- Leighland - 23-12-2006

Ah thanks very much, I thought it had something to do with that but wasn't sure how it worked...


- halla - 23-12-2006

' Set the key for masks
With Key
.low = RGB(255, 0, 255)
.high = RGB(255, 0, 255)
End With

Yeah just that and whatever color. Thats pink I beleive...


- Leighland - 23-12-2006

Hmm maybe someone can go into further detail on this?

I am using RGB(186,133,168) and haven't been able to get it to work.

I tried it as key.low, key.high and on both at the same time, nothing happens.

Any suggestions?


- Dragoons Master - 23-12-2006

This uses like a range, but normaly, since we use only one transparency color, Low and High should be the same. and it will make every RGB(186,133,168) transparent. So your tiles should have this collor as the background.


- Leighland - 23-12-2006

They do, for some reason or another it didn't work though.

However, found a solution on the old forums: http://ms.shannaracorp.com/backup-forum ... ID=632#632


- Tony - 24-12-2006

Just go in paint and look at the RGB :p. Thats one way to do it.

:: Pando