Is there an error in lighting the player.dts??
by Joseph Villard · in Torque Game Engine · 07/06/2005 (2:36 pm) · 2 replies
Hi, John,
I am having an issue with the lighting of the player. The player doesn't seem to act the same way as other dts objects in the scene with respect to ambient and direct lighting. Here are a few examples:
In a scene with a player and several trees, I can turn ambient all the way down (0.000000 0.000000 0.000000 1.000000) and I expect to see the same behavior with both the player and the trees. The shadows of the trees are completely black. But the part of the trees in direct sunlight are lit well. However, the player is lit on both sides (shadow/no shadow).
This happens in the lighting pack example (Beta-1.3.5) and in my game (using the same code base). This has the effect of making the player look "flat". We would really like the ambient light to have some affect on the player - is there anyway to make this happen?
Thanks,
Joe
I am having an issue with the lighting of the player. The player doesn't seem to act the same way as other dts objects in the scene with respect to ambient and direct lighting. Here are a few examples:
In a scene with a player and several trees, I can turn ambient all the way down (0.000000 0.000000 0.000000 1.000000) and I expect to see the same behavior with both the player and the trees. The shadows of the trees are completely black. But the part of the trees in direct sunlight are lit well. However, the player is lit on both sides (shadow/no shadow).
This happens in the lighting pack example (Beta-1.3.5) and in my game (using the same code base). This has the effect of making the player look "flat". We would really like the ambient light to have some affect on the player - is there anyway to make this happen?
Thanks,
Joe
Torque Owner John Kabus (BobTheCBuilder)
You can change the player and vehicle lighting to a directional lighting (similar to TGE) by entering "$pref::OpenGL::sgDynamicDTSVectorLighting=true;" in the console and restarting Torque. That option is placed in Torque's prefs file, so it will stay in that mode until you change it back or delete the prefs file.
Let me know if that helps!
-John