Game Development Community

Graphical layer masks in TGB? Are they there?

by Dave Calabrese · in Torque Game Builder · 12/13/2006 (8:52 pm) · 1 replies

I noticed that the particle emitter displays on the left-side menu seem to have a mask on them, so that only graphics inside the mask are displayed. Is this something available to the rest of the engine? Can I great, say, a black/white graphic of a circle, place that in a scene, and say 'only render inside the white area of this', or something like that?

#1
12/15/2006 (4:15 pm)
You can get pretty close to what you're asking for by using the blending in the game -- yes.

We talked some about this kind of thing in another thread, and I posted a small demo there.

The Garage Games default project comes (or used to come anyway) with a sample level that showed how to do some "lighting" effects that are similar to what you've described.