Game Development Community

Fire Light

by Rodney Rindels - Torqued · in Torque Game Builder · 04/03/2006 (5:22 pm) · 2 replies

I have a simple torch particle that bounces a nice little fire with a tiny amount of smoke emitting, now I would like to go one step further and add a little light , understanding there are many ways to go about this, I think this would be an interesting particle project, an area thats mostly transparent could be utilized I believe, any thoughts or ideas on using this approach, or am I smoking something illegal in my state?


--Thanks for any advice in advance....

Rod

#1
04/04/2006 (12:20 am)
Well, there isn't lighting as such in TGB but one thing you can do is to add another emitter (at the bottom layer) that is set to single-particle mode so that you only get the one particle. If you use a shaped particle (circle or perhaps oval), this can essentially be the "light".

For this to work though, the particle will have to be in front of other objects e.g. in a lower layer so that the "light" is blended over the top of other objects.

- Melv.
#2
04/04/2006 (12:28 am)
Melv,
The issue is, how do you sync up the movement of say the fire emitter with that emitter to move as the fire moves, to make it more realistic? I knew there wasn't "light", but you could with a particle i figured that was mostly transparent, but moved with the other emitter, and possibly slowly tweaked its color during the process?

Rod