Game Development Community

Shadow editor

by Alex Huck · in Torque Game Engine Advanced · 11/17/2006 (4:46 pm) · 2 replies

Hi, is there any shadow editor for TSE4.1? I'm looking for something the same as the TLK Light editor (F12 in editor) Only with the features used in making shadows instead of light.

I'm trying to make a flashlight effect using spotlights attached to a player, using the attach object to player, and setTransforms to match the players eye transform. But I would like to have the rings a flashlight normally creates. I'd do this by making 2 spotlights and a shadow light so sizes look like this:

Light1: 1.0
Shadow: 0.75
Light2: 0.5

Help is much appreciated

#1
11/17/2006 (9:08 pm)
Ah, I've discovered the sgDecalProjector object. This should help some, but there's a problem:
i11.photobucket.com/albums/a194/Alex_Huck/flCircle.png
Using this and making a DecalData like so:

datablock DecalData(FlashlightCircle)
{
sizeX = 1;
sizeY = 1;
textureName = "~/data/textures/flCircle";
};

I make the projector, but it will only project if I am rotating or moving the projector object in the editor, otherwise it doesn't render the decal

-edit- fixed [img] to [image]
#2
11/29/2006 (10:42 am)
Try using a cube light mask - define a cube map with all black textures except for the bottom texture which should use your intensity map, then set the cube mask on an omni light create the effect.