BUG: Point light turnig itself off (Found Workaround)
by Giuseppe De Francesco · in Torque X 2D · 11/21/2009 (9:24 am) · 6 replies
Hi,
I'm experienceng a quite strange issue: my character has a point light. Walking around the scene looks like there are invisible boundaries turning the character's light off. Anyone got this issue? Any hint? Am I missing some parameter somewhere?
Thanks,
Pino
EDIT: Explanation and workaround
THe issue is caused by the very presence of point lights components on the more than one moving character. Removing the light component from the enemies (which are moving around)the issue is "solved". I added some more point lights around (on static animated objects) and the problem is not happening so it's actually related to pint lights components attached to moving objects.
I don't have not yet a deep knowledge of the source code so if a GG developer wants to suggest how to correct this I'll appreciate very much!
I'm experienceng a quite strange issue: my character has a point light. Walking around the scene looks like there are invisible boundaries turning the character's light off. Anyone got this issue? Any hint? Am I missing some parameter somewhere?
Thanks,
Pino
EDIT: Explanation and workaround
THe issue is caused by the very presence of point lights components on the more than one moving character. Removing the light component from the enemies (which are moving around)the issue is "solved". I added some more point lights around (on static animated objects) and the problem is not happening so it's actually related to pint lights components attached to moving objects.
I don't have not yet a deep knowledge of the source code so if a GG developer wants to suggest how to correct this I'll appreciate very much!
About the author
In the software eng. field since 1981, in charge of R&D during last 10 years. IEEE Senior Member (and volunteer).
#2
thanks for answering. The scene is quite simple:
- Tiled background
- 3 different animated characters, each having its own point light (different colors)
- A few static sprites
- One scene directional light (very low)
All the objects are reactive to the light (tiles included) and all of them have normal maps.
There are collisions but this happens also without any collision happening, it's very strange. I'll post a video of this so you can understand the issue.
11/21/2009 (8:03 pm)
Hi Henry,thanks for answering. The scene is quite simple:
- Tiled background
- 3 different animated characters, each having its own point light (different colors)
- A few static sprites
- One scene directional light (very low)
All the objects are reactive to the light (tiles included) and all of them have normal maps.
There are collisions but this happens also without any collision happening, it's very strange. I'll post a video of this so you can understand the issue.
#4
11/21/2009 (8:34 pm)
I am not familiar with TX, but could it be a world limits problem?
#5
thanks for answering. Nope, the world limit for all characters is set to the actual limit of the tiled background (with a bouncing collision associated with).
11/21/2009 (8:41 pm)
Hi Tyler,thanks for answering. Nope, the world limit for all characters is set to the actual limit of the tiled background (with a bouncing collision associated with).
#6
11/22/2009 (4:41 pm)
Found the origin of the issue, I've edited the original post to explain it.
Torque 3D Owner Henry Shilling
Smokin Skull