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 Professional Discussion / TreeMagik texture not transparent - What am I doing wrong?

Author
Message
pamercomov
FPSC Reloaded TGC Backer
10
Years of Service
User Offline
Joined: 2nd Jan 2015
Location: palma de mallorca
Posted: 2nd Jan 2015 10:02
hi everyone.
i´m a newbie and i dont know what i´m doing wrong....

i´ve 1 object created whith treemagic, in .x format.
it is ok.

but when I load the object, the texture does not appear transparent.
use textures that produces the program itself, it´s png format.

i´ve set display mode to 32 bits ...

help me. please.

this is my code:



i think is ok, but no alpha transparency
Rudolpho
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 2nd Jan 2015 11:15
You need to manually tell the object to use the alpha channel for transparency; if you're using the built-in shaders (ie. not writing your own) this is done using the set object transparency function.

pamercomov
FPSC Reloaded TGC Backer
10
Years of Service
User Offline
Joined: 2nd Jan 2015
Location: palma de mallorca
Posted: 2nd Jan 2015 16:05
oh...thanks.
i see previous post this comands, but i think is for object alpha.

its perfect.

i dont understand why this features isnt automatic when i set 32 bits and uses png, but its no problem.
MrValentine
AGK Backer
14
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 2nd Jan 2015 19:22
32 bits, display colour?

It just means you have full colour capabilities.......

Someone correct me if there is more to it however ^^

An Effect that was automatic as Alpha transparency, would be just as annoying as not having it....... Food for thought...



Rudolpho
19
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 2nd Jan 2015 22:44
Quote: "i see previous post this comands, but i think is for object alpha."

Quote: "i dont understand why this features isnt automatic when i set 32 bits and uses png, but its no problem."

An alpha channel really stores "any" non-colour information, it doesn't have to be transparency (though most of the time it probably is).

Chris Tate
DBPro Master
16
Years of Service
User Offline
Joined: 29th Aug 2008
Location: London, England
Posted: 5th Jan 2015 15:56
Quote: "An alpha channel really stores "any" non-colour information, it doesn't have to be transparency (though most of the time it probably is)."


Indeed, other common uses of the alpha channel in the gaming industry is the height or specular properties of a texture.

Clonkex
Forum Vice President
14
Years of Service
User Offline
Joined: 20th May 2010
Location: Northern Tablelands, NSW, Australia
Posted: 6th Jan 2015 01:22
I've renamed your thread title to something that actually describes your problem. In future, please try to be more specific with your thread titles (so instead of saying "What am I doing wrong?", you might say "Object not loading with correct rotations" or "Texture not displaying correctly" ).

Login to post a reply

Server time is: 2025-05-15 07:57:26
Your offset time is: 2025-05-15 07:57:26