123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|382|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> On Topic -> The Default mask Color

Sat, 18 Sep 2010, 17:51
dna
If load a image like this: IMG_01=LoadImage("e:sep10.jpg")

does BB use black as the default masking color?

-=-=-
DNA
Sat, 18 Sep 2010, 19:49
CodersRule
IIRC you can use "MaskImage r,g,b" to change it.
Sun, 19 Sep 2010, 03:21
Afr0
Yup. CodersRule is correct. Black is a stupid masking color. Who wants to make a game that doesn't use black?

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Sun, 19 Sep 2010, 04:11
JL235
Afr0 Yup. CodersRule is correct. Black is a stupid masking color. Who wants to make a game that doesn't use black?

Agreed, but it's also an easy one to remember. Although lots of people use pink these days, it's harder to remember it's rgb values of the top of your head.
Sun, 19 Sep 2010, 05:17
waroffice
255,0,255 i think but its been a long day
Sun, 19 Sep 2010, 05:47
CodersRule
I disagree that it's hard to remember. I don't have that much experience, and I c an mix lots of basic colours in my head. Magenta is one of the easiest ones.

If you watch this video all the way through without interruptions, it'll glue to your head. Trust me.
www.youtube.com/watch?v=VN4_Q7SBC7s
Sun, 19 Sep 2010, 07:16
waroffice
I would rather watch that 10 min video than an entire game of football
Sun, 19 Sep 2010, 11:11
steve_ancell
waroffice 255,0,255 i think but its been a long day

That's Magenta apparently, but I suppose you could pass it off as Pink.
Sun, 19 Sep 2010, 20:33
9572AD
I never had a problem using Black(0,0,0) as a masking color and using (1,1,1) for the color black. *shrug*

-=-=-
All the raw, animal magnetism of a rutabaga.
Sun, 19 Sep 2010, 21:05
dna
If you do not match the color correctly then you will have artifacts in your image.

-=-=-
DNA
Mon, 20 Sep 2010, 01:02
Jayenkai
Be wary of using 1,1,1.. On certain systems, in certain bitdepths, 1,1,1 becomes 0,0,0..

-=-=-
''Load, Next List!''
Mon, 20 Sep 2010, 09:47
dna
That can't be right Jay. If so then it must happen at low bit resolutions.
Numerically I cannot see that happening in 32 or 48 bit modes with all the colors.

-=-=-
DNA
Mon, 20 Sep 2010, 10:04
Jayenkai
Blitz does 16 and 24 bit modes, and works on a multitude of DirectX7 graphics card, with a whole variety of quirks.
Even if everything modern has swings and whistles, never forget that you "could" be running on your granny's PC.

-=-=-
''Load, Next List!''
Mon, 20 Sep 2010, 10:41
mindstorm8191
I have to agree with Jay. Not everyone has the latest and greatest PC hardware. Heck, some people are still running systems with Win98. If you exclude systems like that, you are shrinking your possible market.

I honestly don't see why so many companies require the latest and greatest hardware out at the time, if it means most people will have to upgrade. But then, maybe people don't mind shelling out more money for hardware, to see the awesome effects the games can create.

-=-=-
Vesuvius web game
Mon, 20 Sep 2010, 11:01
dna
When I run B2D to use the graphics, I run it in 32bit color mode. At that resolution 0,0,0 and 1,1,1 as a mask should be different, in the software.

-=-=-
DNA
Thu, 23 Sep 2010, 12:10
JL235
Not everyone builds their games to run in 32-bit mode, so again I agree with Jay! Pretty certain you can also force applications to run in certain bit-modes, regardless of which one you've set.

But IMHO this is only an issue with BB since it doesn't support transparency (full or bitmasked) in images. In anything else (like C#, Java or a wide range of C++ libraries) this is a non-issue.