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 / what command makes a color invisible on a texture map

Author
Message
Joegio13
19
Years of Service
User Offline
Joined: 26th Jan 2005
Location: Miami, FL
Posted: 27th Jan 2005 06:42
i got a plain and i want to know what command makes a specific color invisible. i want to make white invisible. this is a test i am trying to run.
Mason
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: Arizona
Posted: 27th Jan 2005 10:27 Edited at: 27th Jan 2005 10:29
This command makes the color "black" invisible.
If you rather have a different color transparent other than black, you could set it the color key using this command.
Whenever you use the set image colorkey command, you must place it before the image you are loading. For instance If I wanted to load "Texture.bmp" and make the green color(0,100,0) transparent, the code would look like this.


Joegio13
19
Years of Service
User Offline
Joined: 26th Jan 2005
Location: Miami, FL
Posted: 28th Jan 2005 01:39
ok, this is what i coded. It shows up black, instead of transparent.
Plz help!!!
Joegio13
19
Years of Service
User Offline
Joined: 26th Jan 2005
Location: Miami, FL
Posted: 28th Jan 2005 22:28
for my first game, im making a pong game. I got the program working fine, except for my output of scores and lives. I made nice little bitmaps with the all the numbers and labels. I got a bitmap that i would like to blit parts of it, so that i can display information. how should i do it? as when i try and blit the image it turns my screen all black. plz help

btw. i meant 2D sprites in 3D enviroment.

-sigh- DBPro can't program in the 4th dimension

Login to post a reply

Server time is: 2024-11-27 21:26:12
Your offset time is: 2024-11-27 21:26:12