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 Discussion / another example of blending : texture blending( realtime)

Author
Message
Silverman
13
Years of Service
User Offline
Joined: 18th Jan 2007
Location: France
Posted: 6th May 2012 14:20 Edited at: 6th May 2012 20:23
enjoy!

edit: code updated

DirectX 9.0c (February 2010)/ DBClassic v1.13

Attachments

Login to view attachments
Fluffy Rabbit
User Banned
Posted: 6th May 2012 19:41 Edited at: 6th May 2012 21:45
It's kind of a shame that whatever versions of DirectX DarkBASIC is using only support one additive ghost layer with one subtractitive ghost layer. If you put an alpha mapped object behind an alpha mapped object, the one in the background disappears!
Libervurto
14
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 6th May 2012 19:45 Edited at: 6th May 2012 19:55
This is brilliant! Why didn't I think of this?
I don't think the effect is obvious so I changed the presentation:
(You will need Silverman's included image to run this code)


Edit:
I changed the images for the blending example to show what it could be used for. Attached -->

WARNING: The above comment may contain sarcasm.

Attachments

Login to view attachments
Silverman
13
Years of Service
User Offline
Joined: 18th Jan 2007
Location: France
Posted: 6th May 2012 20:25
@OBese87

nice, i update my codes, with your media.

DirectX 9.0c (February 2010)/ DBClassic v1.13

Login to post a reply

Server time is: 2020-08-05 08:21:44
Your offset time is: 2020-08-05 08:21:44