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 / Making black invisible.

Author
Message
castek
17
Years of Service
User Offline
Joined: 15th Aug 2007
Location: Right behind you!
Posted: 20th Nov 2008 06:46 Edited at: 20th Nov 2008 06:57
Hey! i use 3d world studio to make my maps and i wanted make a chain link fence to accomplish this i got a texture and filled the part i wanted to be see through with true black. then i exported and loaded into DB but it just appeared as the original texture no black missing. so my question is what do i have to do to make it see through part way? please and thank you!

"The Beginning is the end."
Windows Vista Ultimate SP1
INTEL PENTIUM DUAL E2200 2.2 GHz 2 Gb RAM GeForce 9600 512 mb
Jane Doe
17
Years of Service
User Offline
Joined: 29th Jun 2007
Location:
Posted: 20th Nov 2008 08:15
Quote: "SET OBJECT TRANSPARENCY

This command will set the transparency state of the specified object. The transparent colour is determined by the SET IMAGE COLORKEY command
or the alpha channel of the texture. The transparency modes are used to control when and how the object is drawn into the scene, and are
described below. Special consideration should be used with the depth sort system, which takes the coordinate of the object and camera and depth
sorts based on the distance between these points. You can inadvertantly create a situation where a large object behind a small object would have
a shorter distance, and be rendered last instead of first.

0 - draw first no alpha
1 - draw first with alpha masking
2 and 3 - draw second which overlaps solid geometry
4 - draw second alpha test (only render beyond 0x000000CF alpha values)
5 - water line object (seperates depth sort automatically)
6 - combination of 3 and 4 (second phase render with alpha blend AND alpha test, used for fading LOD leaves)

Syntax

SET OBJECT TRANSPARENCY Object Number, Flag"


- Jane
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 20th Nov 2008 09:29
You might also want to try a transparent PNG file, then you can have different levels of transparency. Using a black mask can be a little harsh and pixellated. You will still need the command described aboved by Jane.

castek
17
Years of Service
User Offline
Joined: 15th Aug 2007
Location: Right behind you!
Posted: 20th Nov 2008 16:32 Edited at: 21st Nov 2008 00:00
@ jane I dont get it how do i get that command to make black invisble?


EDIT:
nvm i got it, thanks for the help guys!

"The Beginning is the end."
Windows Vista Ultimate SP1
INTEL PENTIUM DUAL E2200 2.2 GHz 2 Gb RAM GeForce 9600 512 mb

Login to post a reply

Server time is: 2024-11-24 17:07:18
Your offset time is: 2024-11-24 17:07:18