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 / Transparency with alpha channels?

Author
Message
Soyuz
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location:
Posted: 4th Jan 2003 19:07
I have read a range of posts where some say you can use alpha channeled TGA images to add transparency to a texture and some saying you can't.

Anyone know the truth?
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 4th Jan 2003 22:41
If its not possible then that will be another DLL for me to write..

xxxpetratxxx
B. R. W
mimesis
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Norway
Posted: 5th Jan 2003 00:13
I agree on the DLL

TGA alpha channel is not supported

Layer opacity (pshop) is, in PNG format.
Soyuz
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location:
Posted: 5th Jan 2003 02:11
When you say layer opacity do you mean a case of a texture can be faded to transparent as a whole, rather than specific areas of the texture being of varying transparency?

Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 5th Jan 2003 02:17
i could do a dll for that...if i can then it will be here at the end of january (i hope)

xxxpetratxxx
B. R. W
mimesis
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Norway
Posted: 5th Jan 2003 02:33
"When you say layer opacity do you mean a case of a texture can be faded to transparent as a whole, rather than specific areas of the texture being of varying transparency?"

Yep, thats about it.
Soyuz
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location:
Posted: 5th Jan 2003 14:25
pants!

Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 5th Jan 2003 14:58
I know, U need it now but I need some time because I'm really busy and ive gotta buy another compiler...

xxxpetratxxx
B. R. W
mimesis
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Norway
Posted: 5th Jan 2003 15:36
Why do u have to buy a new compiler?
Cant u use something like Dev C++ which is free?
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 5th Jan 2003 16:20
no..

xxxpetratxxx
B. R. W
mimesis
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Norway
Posted: 5th Jan 2003 18:10
why not?
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 5th Jan 2003 19:10
coz i dont use C or C++...

xxxpetratxxx
B. R. W
mimesis
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Norway
Posted: 5th Jan 2003 20:06
So what do u use? ASM?
Soyuz
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location:
Posted: 5th Jan 2003 20:09
Well if you did an alpha channel thingy it would be massively hugely immensely appreciated at an unimaginable and practically psychologically insurmountable scale.

So it would be quite welcome

Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 5th Jan 2003 21:37
lol. i dont use asm, guess again .I will try this alpha stuff, and if it works, i will add more cool stuff with it

xxxpetratxxx
B. R. W
mimesis
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Norway
Posted: 5th Jan 2003 22:42
hmmm, if it isnt asm it must be visualbasic ,right?
or even better blitz?
Nah I give up, care less, probably Delphi
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 6th Jan 2003 00:31
no...i would like to not say..

xxxpetratxxx
B. R. W
Kangaroo2
21
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 6th Jan 2003 00:44
lol at petrat u keep em guessing m8 there's plenty more possibilites

* If the apocalypse comes, email me *
Soyuz
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location:
Posted: 6th Jan 2003 01:12
You will be my hero if you got it working. I wrote an email to the DB guys about this topic and no doubt they've had requests for it before.

Fortran?

Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 6th Jan 2003 13:59
fortran? you askin' me? what? PLEASSEEE stop guessing, it wont help me coz i come online to read these messages and this SLOOWs my work down!

xxxpetratxxx
B. R. W
Soyuz
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location:
Posted: 6th Jan 2003 14:18
Interesting logic!!!

Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 6th Jan 2003 17:02
very

xxxpetratxxx
B. R. W
Soyuz
21
Years of Service
User Offline
Joined: 17th Dec 2002
Location:
Posted: 6th Jan 2003 19:17
I've just had my attention drawn to "set object transparency" which states that "setting the transparency to one will ensure the object does not draw the transparent color duing final rendering"

It lies! I have tried using PNG,jpg and tga with an area in the image set as black which should in theory become transparent, having set the transparency color to black (which I believe it is by default anyway).

Has anyone seen this working (on a 3D object) as it theoretically sounds like something similar to using alpha channels but without the greyscale range?

Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 6th Jan 2003 21:43
not me

xxxpetratxxx
B. R. W
Kangaroo2
21
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 6th Jan 2003 23:41
Yes this works for me, but only with bitmap images. Plus its slightly innaccurate. On other ppls graphics cards it doesn't work at all. This should hopefully b fixed soon by a patch, it worked perfectly in DB1

* If the apocalypse comes, email me *
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 7th Jan 2003 02:09
I have only got BD classic (good for me)

xxxpetratxxx
B. R. W

Login to post a reply

Server time is: 2024-05-17 20:06:06
Your offset time is: 2024-05-17 20:06:06