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 / Loading transparent/alhpa pngs

Author
Message
MONSTER MARK
14
Years of Service
User Offline
Joined: 3rd Sep 2010
Location:
Posted: 31st Aug 2011 12:19
I have created an outdoor terrain using 3d-world studio.
i've used a couple of .. tree images (in png for transparency)

i works perfectly fine with 3d-world studio with shading effects and all..

But when I load it into dbpro, the pngs appear black as if there no light falling on it..

is there a problem in the way i'm importing dbo(exported by 3d-world studio) file into darkbasic?

or is a graphic card issue?




Judgment Day Can Wait !!
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 31st Aug 2011 23:18
It's actually that DBPro does not automatically enable transparency for objects when you load or create them.

Use the SET OBJECT TRANSPARENCY command to enable transparency for your object after you've loaded it.

MONSTER MARK
14
Years of Service
User Offline
Joined: 3rd Sep 2010
Location:
Posted: 1st Sep 2011 07:03 Edited at: 1st Sep 2011 07:06
Darkbasic screenshot




3d-world studio screenshot



but after i tried set transparency in my code:



I get :


Judgment Day Can Wait !!
MONSTER MARK
14
Years of Service
User Offline
Joined: 3rd Sep 2010
Location:
Posted: 2nd Sep 2011 20:57
is there any other way to get this working??
could it be a rending lights issue??
i'm eager to get this to work as it would solve most of my issues in 3d games...

Judgment Day Can Wait !!

Login to post a reply

Server time is: 2024-11-24 01:24:16
Your offset time is: 2024-11-24 01:24:16