| Mirage Source http://www.miragesource.net/forums/ |
|
| Changing Transparency Color http://www.miragesource.net/forums/viewtopic.php?f=210&t=601 |
Page 1 of 1 |
| Author: | halla [ Thu Oct 05, 2006 8:43 pm ] |
| Post subject: | Changing Transparency Color |
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. |
|
| Author: | Misunderstood [ Thu Oct 05, 2006 8:51 pm ] |
| Post subject: | |
in modDirectX look for where it sets the key. Change that value to whatever. |
|
| Author: | halla [ Thu Oct 05, 2006 8:59 pm ] |
| Post subject: | |
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. |
|
| Author: | Krloz [ Thu Oct 05, 2006 9:33 pm ] |
| Post subject: | |
theres a tut in old forums I would search but I gtg class is done xP |
|
| Author: | halla [ Thu Oct 05, 2006 9:37 pm ] |
| Post subject: | |
Its fine I figured it out. It was working what I had someone is helping now and they had something changed I fixed it. |
|
| Author: | Misunderstood [ Thu Oct 05, 2006 9:40 pm ] |
| Post subject: | |
for others that don't know, its the rgb long value. both low and high should be the same. |
|
| Author: | Gawian [ Tue Dec 04, 2007 12:15 am ] |
| Post subject: | Re: Changing Transparency Color |
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 |
|
| Author: | Rezeyu [ Tue Dec 04, 2007 1:28 am ] |
| Post subject: | Re: Changing Transparency Color |
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 |
|
| Author: | Gawian [ Tue Dec 04, 2007 11:39 pm ] |
| Post subject: | Re: Changing Transparency Color |
indeed it does, thanks for the help |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|