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 / Opacity Texturing?

Author
Message
Ub3rS0ldAt Patriot of War
20
Years of Service
User Offline
Joined: 8th Dec 2003
Location: United States! Support the Soldiers!
Posted: 25th Jan 2004 03:14
How do have a texture use an opacity or alpha map? Like the picture below.

Or maybe I want to create plants or trees that use textures.


.:Leader of BoX-Softare Gaming Company:.
BearCDPOLD
20
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 25th Jan 2004 08:42
When you use the LOAD IMAGE command in DBClassic, the default setting is to consider all black rgb(0,0,0) pixels invisible. If you're using DBpro, you can probably get it to shade partially, or change which colors are transparent with some simple commands, but unfortunately I'm a DBClassic guy.

Juvenile Industries
Current Project: KillZone(FPS)
Soon to come:An rts, and a snowball fight game
Eldar
20
Years of Service
User Offline
Joined: 26th Nov 2003
Location:
Posted: 25th Jan 2004 19:35
If you mean for 3d then you can just use a pixel shader.

3.1 ghz Pentium 4
Geforce FX 5800 ultra @ 535/1300
DX 9
Ub3rS0ldAt Patriot of War
20
Years of Service
User Offline
Joined: 8th Dec 2003
Location: United States! Support the Soldiers!
Posted: 25th Jan 2004 22:33 Edited at: 25th Jan 2004 22:40
Hmmm, can you make some nifty water effects like HL2 by using pixel shaders?

And is it possible for the transparency be faded as in the final outcome of opacity mapping. Why can't DB do it?

.: Owner of BoX-Softare Gaming Company :.
Eldar
20
Years of Service
User Offline
Joined: 26th Nov 2003
Location:
Posted: 25th Jan 2004 22:47
Yes you could make hl2-like water effects with pixel shaders. In responce to your second question, you could use a pixel shader and a opacity map to make an object transparent in some areas and solid in others.

3.1 ghz Pentium 4
Geforce FX 5800 ultra @ 535/1300
DX 9
Ub3rS0ldAt Patriot of War
20
Years of Service
User Offline
Joined: 8th Dec 2003
Location: United States! Support the Soldiers!
Posted: 27th Jan 2004 04:15
cool. Now I just have to get a Geforce FX card.

.: Owner of BoX-Softare Gaming Company :.
Eldar
20
Years of Service
User Offline
Joined: 26th Nov 2003
Location:
Posted: 27th Jan 2004 20:27
If you are going to be using shaders quite ofteen then i would suggest getting an ATI card instead. The radeon 9800 pro is anywhere from 50% to 100% faster when using direct x 9 pixel shaders then a geforce fx 5900 ultra.

3.1 ghz Pentium 4
Geforce FX 5800 ultra @ 535/1300
DX 9
Ub3rS0ldAt Patriot of War
20
Years of Service
User Offline
Joined: 8th Dec 2003
Location: United States! Support the Soldiers!
Posted: 28th Jan 2004 04:29
Actually Geforce FX 5950 ultra has higher FPS using Direct x 9 on my computer.

.: Owner of BoX-Softare Gaming Company :.
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 28th Jan 2004 05:38 Edited at: 28th Jan 2004 05:39
First of all this trick will probably only work in Professional.
This example will not work in classic.
You dont need to invest in a new card for opacity areas in pro, what a load of crap.
This example demonstrates an opacity example using a DDS file.
Nvidia has a DDS exporter/importer for photoshop on their site.
btw im using a tnt2m64 32 meg geforce 1 so yeah there you have it.

http://www.dbforums.co.uk/indi/dbp_examples/dds_opacity_test.zip

attached in zip:

dba source
dbp project file
photoshop file
dds exported file




aye the blind leading the blind sometimes.


Ub3rS0ldAt Patriot of War
20
Years of Service
User Offline
Joined: 8th Dec 2003
Location: United States! Support the Soldiers!
Posted: 28th Jan 2004 06:14
Oh yeah. I remeber that. Hmmmm, thanks for the help. it realy helped me out so far.

.: Owner of BoX-Softare Gaming Company :.
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 28th Jan 2004 07:25
no worries mate, dont waist money on a new card unless you want to activate shader 2.0 stuff, then i would reccomend a dx9 shader 2 card.


Ub3rS0ldAt Patriot of War
20
Years of Service
User Offline
Joined: 8th Dec 2003
Location: United States! Support the Soldiers!
Posted: 28th Jan 2004 07:38
i may waste some money on one so I can at least play next gen games, and at the same time, make next gen games.

.: Owner of BoX-Softare Gaming Company :.
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 28th Jan 2004 07:40
i guess so Im still refining as much as i can until I invest in a shader 2 card. If I can make it run fast and look good on a crappy tnt2m64 then I wont have any hidden slowdowns later on.


waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 28th Jan 2004 12:20
In DBC you can also use Ghost Object
It only does 50% tranparency and there is a performance hit
but its Ok as long as you don't over do it.

internet gaming group
current project http://home.comcast.net/~norman.perry/Archon.html

Login to post a reply

Server time is: 2024-09-21 18:53:06
Your offset time is: 2024-09-21 18:53:06