Game Development Community

Disappearing shadows

by Neven Sosteric · in Torque Game Engine · 11/30/2006 (1:13 am) · 5 replies

Hi everybody!

I'm having a problem with shadows. They're disappearing when the object that casts the shadow is no longer "in my field of view". Having a shadow disappear doesn't look to good, so i'm looking for a way to eliminate such behavior.

The object that casts the shadow is an animated .dts of a flower which "dances in the wind" and moves when a bee lands on it. If i look at the flower (with the flower standing vertical) and rotate the camera in the direction of shadow, as soon as i lose the flower out of my sight, the whole shadow disappears.

Has anyone any idea how to solve this?

Thanks,
Kresimir

#1
11/30/2006 (5:25 am)
One other shadow problem I noticed. If I place Kork standing on top of a barrel, kork casts a shadow, but the barrel doesn't. In fact, the barrel "shadow" cuts into Korks shadow with an unshadowed part...

Any ideas why?

Tony
#2
12/04/2006 (7:53 pm)
Hi Kresimir,

Torque uses the shadow caster's scene visibility to cull shadows for performance. You can break out shadows into their own scene objects using this resource: Shadows class derived from Sceneobject.


Tony, can you post a screen shot?
#3
12/04/2006 (9:21 pm)
Say John, last time (a few weeks ago) I tried to get Duncans Sceneobject Shadow code to work in TLK 1.422 it would not work. I have been hoping and waiting for the "TLK resource for it" you mentioned was in the works back in (July 14, 2006 at 11:21), I would hope by now it have had time to be fully tested....
#4
12/05/2006 (5:21 pm)
John,

Thanks but I can't do screenshots yet. I have a website, but no time to upload pics.

Tony
#5
12/05/2006 (5:44 pm)
@Tony

Just a suggestion: you could throw your screenshots into photobucket and then link to them here - it's quite simple to use.