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 / help with .bmp transparencies

Author
Message
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 24th Dec 2005 03:50
ok so i realized a while back that if i load a plain and texture it with a bitmap to use for say a HUD or menu, and if i ghost it every part of the bmp that is black will be completely see through. Well I need to load a bmp of an arrow. I don’t want it to be ghost. so i need to know how i can make everything around the arrow in the bmp completely see through. Making all the area around it black doesn’t work like it does with ghost, and when i make the picture of the arrow and the background transparent, that didn’t work either u just see the grayness from the plain.

any help would be appreciated

thanks

gowmars

Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 24th Dec 2005 04:35
You can use "set object" to stop Darkbasic from drawing the black areas.

SYNTAX
SET OBJECT Object Number, Wire, Transparent, Cull
SET OBJECT Object Number, Wire, Transparent, Cull, Filter
SET OBJECT Object Number, Wire, Transparent, Cull, Filter, Light
SET OBJECT Object Number, Wire, Transparent, Cull, Filter, Light, Fog
SET OBJECT Object Number, Wire, Transparent, Cull, Filter, Light, Fog, Ambient


Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 24th Dec 2005 04:36

Login to post a reply

Server time is: 2025-05-22 19:09:51
Your offset time is: 2025-05-22 19:09:51