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.

Newcomers DBPro Corner / weird issue with Set Image Colorkey...

Author
Message
mbaucco
18
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 20th Jun 2007 18:23
Hello again, I was working on a bit of code and had some detail maps with a magenta background and black text. I used Set Image Colorkey to make magenta the transparent color, and that works fine.

Unfortunately, black is also transparent still! Is this a known issue, or is there some way to make sure black isn't transparent on a 3d object?
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 20th Jun 2007 18:49
You can use 11,11,11 as black (first value that isn't treated as transparent), or you can use transparent PNG files with an alpha layer. The second option is the better one, it allows you to create anti-aliased edges.

mbaucco
18
Years of Service
User Offline
Joined: 6th Nov 2005
Location:
Posted: 20th Jun 2007 20:04
aha! Thanks for the tip. Normally I would use alpha maps but I am doing some excercises from a book.

Login to post a reply

Server time is: 2024-09-27 01:16:37
Your offset time is: 2024-09-27 01:16:37