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.

DarkBASIC Discussion / What kind of transparency system does DBC use?

Author
Message
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 2nd Jan 2005 07:09
It uses alpha transparency doesn't it? So if I am making 2D media, I should color all the areas I don't want the player to see as pitch black right? Oh and what command turns alpha on so that black is ivisible?

Guns arn't the problem, people are the problem, shoot all the people and guns arn't a problem anymore.
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 2nd Jan 2005 09:31
SET OBJECT Object Number, Wireframe, Transparency, Cull

You'd want transparency to be = 0, more info in the help file.


I spelled "disappointment" wrong. Pahintulutan ang di-inaasahang nakakahiyang pagkakamaling dulot ng kamangmangan. Have at you.
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 2nd Jan 2005 10:13
Can you make an image transparent instead of an object? So could I past an image on the screen and have areas of that transparent.

Guns arn't the problem, people are the problem, shoot all the people and guns arn't a problem anymore.
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 2nd Jan 2005 11:07
PASTE IMAGE Image Number, X, Y, Transparent

or

SET SPRITE Sprite Number, BackSave State, Transparency State


I spelled "disappointment" wrong. Pahintulutan ang di-inaasahang nakakahiyang pagkakamaling dulot ng kamangmangan. Have at you.
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 2nd Jan 2005 11:27
Will that make the whole image transparent, or only the totally black areas? So that I can make an interface?

Guns arn't the problem, people are the problem, shoot all the people and guns arn't a problem anymore.
Arkheii
21
Years of Service
User Offline
Joined: 15th Jun 2003
Location: QC, Philippines
Posted: 2nd Jan 2005 11:45
Only the totally black areas will be transparent, RGB(0,0,0). But values that are pretty close seem to become tranaparent as well, like RGB(4,4,4). And yes, you can make an interface by doing this, though I really prefer using a 3d plain locked to the screen instead.


I spelled "disappointment" wrong. Pahintulutan ang di-inaasahang nakakahiyang pagkakamaling dulot ng kamangmangan. Have at you.

Login to post a reply

Server time is: 2025-05-24 21:09:24
Your offset time is: 2025-05-24 21:09:24