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.

2D All the way! / Draw order

Author
Message
Tapewormz
23
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 11th May 2004 01:33 Edited at: 11th May 2004 01:33
I haven't had a chance to try this, but I was wondering if setting the draw order would work for the following.

1.clear the screen

2.set draw order and paste an image

3.set draw order and render several transparent 3D plains

4.set draw order and paste a heading image with transparency

5.sync the screen

To created a layered image with several 3D plains sandwiched between them. Basically, I have an image that I want to overlay a smoke effect and then overlay an image with transparency. I don't want the rendered smoke effect to paste over the heading image. Or am I going about this all wrong?

Quote: " Timesoft - Your wife is death. How? NO idea.
But it is murder. REVENGE!!!!!!!!!"

Hands down the funniest synopsis for a game ever. All your base are belong to us!
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 13th May 2004 01:04
Seeing as the rendering happens during the SYNC, I don't quite see how you can get this to work.

Is this a 2D game or 3D, and are you using DBC or DBPro?

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins, source and the Interface library for Visual C++ 6, .NET and now for Dev-C++ http://www.matrix1.demon.co.uk
Tapewormz
23
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 14th May 2004 04:25 Edited at: 14th May 2004 04:26
I've got a BMP file that I'm loading as a background image. Over top of this image I'd like to render 5-10 transparent planes that are textured with an image that contains an alpha channel. (It looks like fog). The images will render in a random circular motion using a sin math equasion. (easy...I've done this alot). Then I'd like to paste an image overtop of the fog. (a heading image...title or something).

Maybe I'd have to render the 3D to a different bitmap and then copy that bitmap and paste it with a transparency flag overtop of the main bitmap. Then paste the image of the heading?

I read the information on DRAW TO FRONT and DRAW TO BACK. It's not the command set that I was looking for, it wouldn't do what I needed it to do.

Quote: " Timesoft - Your wife is death. How? NO idea.
But it is murder. REVENGE!!!!!!!!!"

Hands down the funniest synopsis for a game ever. All your base are belong to us!
Tapewormz
23
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 14th May 2004 04:28
Also, is there any way to vary the level of transparency? Right now it looks like it's either on or off at 50% transparency.

Quote: " Timesoft - Your wife is death. How? NO idea.
But it is murder. REVENGE!!!!!!!!!"

Hands down the funniest synopsis for a game ever. All your base are belong to us!
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 14th May 2004 11:17
Ghost is like 50% On/Off, but Alpha channels don't need ghost turned on. Alpha channel transparency % is set in the art package that makes the images I think. Whatever transparency the layer is set to, is the % used.

the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 14th May 2004 18:31
Make sure you are runing it in 32bit not 16bit.
If you aren't allready try useing the texture flag when loading images eg
load image "a.png",1,1
just incase dbpros filtering is messing it up.

[beat the machine that works in your head]
Tapewormz
23
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 25th May 2004 00:43
Thanks for the information. I recently discovered this while I was playing around. Any dll's available that offer variable transparancy?

Quote: " Timesoft - Your wife is death. How? NO idea.
But it is murder. REVENGE!!!!!!!!!"

Hands down the funniest synopsis for a game ever. All your base are belong to us!
Emperor Baal
22
Years of Service
User Offline
Joined: 1st Dec 2003
Location: The Netherlands - Oudenbosch
Posted: 25th May 2004 02:35
Not that I know off, but most art packages can edit the alpha channels of pictures (mostly PNG).

(for adobe photoshop users)
In adobe photoshop cs I do this:

-create new file -> 512x512 : background transparent

-I draw the texture

-I click on "layer" at the topbar and select add layer mask -> reveal all

-I click on the alpha channel that just popped-up next to the texture (in the layers window)

-I draw the transparent parts, and I save the texture as a PNG

Quote: "
UPDATED

Amd 2800+ 1024mb pc3200 A7N8X - Deluxe Ati Radeon 9800PRO 256mb
"

Login to post a reply

Server time is: 2026-06-09 15:43:15
Your offset time is: 2026-06-09 15:43:15