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 / Darkbasic Picture handling

Author
Message
KovaSteel
22
Years of Service
User Offline
Joined: 7th Feb 2003
Location: Mauritius
Posted: 5th Apr 2003 15:51
I`m currently working on the Battle system for my RPG and I really need to know if Darkbasic is able to handle other formats apart from BMP.I also need to know if am able to set a tranparency level to my pictures(even BMP) to make them become semi transparent.Thnaks in advance
Final Fantasy Rulz!
Andy Igoe
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 5th Apr 2003 17:28
Many formats work .bmp .jpg .dds but .gif doesn't.

For transparency display your image as a sprite and use the set sprite transparency command.

Only problem is it's been a while since I used classic DB, so not sure if that's just a Pro thing...

Pneumatic Dryll, Outrageous epic cleric of EQ/Xev
God made the world in 7 days, but we're still waiting for the patch.
arras
22
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Slovakia
Posted: 5th Apr 2003 19:14
If you ask about 3D, you can use -set object - command where you can set transparency flag to 0 and all parts of object textured black will be invisible.
Black means rgb walue (0,0,0) to rgb(10,10,10) everything else will be displayed.

If you mean semitransparent then you can use -ghost object- command. In this case hovewer everything on object will be semitransparent regardles on color, but darker colors will be more transparent then lighter ones. Black color will be in fact totaly transparent.

Try these comands and see what they do.

John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 5th Apr 2003 20:10
Sorry, but setting the transparency of the sprite will only make black parts not show up. I would suggest texturing a plane and ghosting that.

RPGamer

Current - RPG: Eternal Destiny
KovaSteel
22
Years of Service
User Offline
Joined: 7th Feb 2003
Location: Mauritius
Posted: 6th Apr 2003 09:43
Could you please explain that to me RPGamer??I need to make the picture itself tranparent so we can partly see through it and not making the black parts(000000) tranparent so they are not displayed.

Final Fantasy Rulz!
Hell IVIonkey
22
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Outer Limits
Posted: 6th Apr 2003 12:43
rgb(11,11,11) looks very near black. Perhaps replace all entries less than this in your image with this value.

Login to post a reply

Server time is: 2025-06-18 05:24:26
Your offset time is: 2025-06-18 05:24:26