Game Development Community

T2D Blending Demo

by Alex Rice · in Torque Game Builder · 09/10/2005 (6:05 pm) · 14 replies

SetBlending() options in Torque2D. ... Confused. So I started putting a little gui together to experiment with the blending options. I thought maybe others would be interested. Some may not realize you can get some cool effects from this blending stuff, and it's all done in OGL so it's super fast.

Alas, even after writing this demo; I still don't GROK blending options. I don't have a mental model of the framebuffer, the source and the destination.

After playing with this app for an hour or two, then hopefully I will just grok it and won't need to understand technically what's going on.

And one question:

Can blending effects be applied to Particle Effects? If so I have not been able to figure out how that's done. What object do you

Here are some screenshots. If anyone is interested, let me know and I'll post it as a resource or email it to you. I also need to add setBlendColour().

mindlube.com/garagegames-forum/screenshot_004-00001.png
mindlube.com/garagegames-forum/screenshot_003-00001.png

#1
09/10/2005 (7:03 pm)
Cool..
#2
09/11/2005 (10:46 am)
@Jesse- glad you think so. After I add the setBlendColor() functionality, I will zip it up and email it to you.
#3
09/11/2005 (2:59 pm)
I tried to do this myself!!

-- And failed...

Good Work... :D

Can I have it now?

Ricky,
#4
09/11/2005 (4:00 pm)
OK i updated the screenshots above, and am wrapping this thing up in an installer now...
#5
09/11/2005 (4:16 pm)
Download windows installer
mindlube.com/garagegames-forum/t2d-blending-demo-setup.exe
Let me know if anyone wants a .zip file instead for mac or linux

I hope it's as helpful for others as it has been for me to understand blending.
#6
09/12/2005 (12:11 am)
Alex,

Nice work. The blending modes are a little cryptic and require a fundamental understanding of a certain section of the rendering pipeline to understand fully so an app like this can only help.

Thanks for the community help bud.

- Melv.
#7
09/12/2005 (1:00 am)
Very cool, thanks Alex!
#8
09/12/2005 (9:54 am)
Thankyou, this will be a great help!
#9
09/12/2005 (9:56 am)
Nice demo Alex, really helps demonstrate the difference between blending modes
#10
09/13/2005 (12:09 pm)
Nice, thanks for that!
#11
10/20/2005 (8:54 am)
I have a question about the blending effect, following as:
www.garagegames.com/mg/forums/result.thread.php?qt=35829

Please give me a help, thanks a lot.

~HugeOne
#12
10/20/2005 (5:03 pm)
Hugeone- offhand I cannot think of how to accomplish that. Have you played around with the T2D Blending Demo? It should give you some ideas for getting different effects.
#13
11/12/2005 (9:09 pm)
Very nice! That would be very useful indeed. :)
#14
04/08/2006 (10:12 pm)
This resource is about 6 months old - anyways I just noticed that the Windows installer doesn't setup a properly working shortcut in the start menu. if you are having trouble launching it, you can right click on the T2d Blending Demo shortcut in your Start menu and set Properties > Shortcut > Start in > C:\Torque2D\T2DBlendingDemo. Then it should start without an error about not being able to open main.cs

Anyways, glad this demo was useful for some of you.

Alex