T3D 1.2 - Basic Lighting: Multiple Lights Problem - LOGGED (THREED-3177)
by CSMP · in Torque 3D Professional · 01/25/2012 (8:32 am) · 3 replies
Build: 1.2 Pro
Platform: Windows 7 64 bit
Target: In-game
Issues: When multiple lights are used in Basic Lighting the engine chooses a select few lights to actually show, while testing the FPS Tutorial I also noticed that Basic Lighting shows tons of lighting problems from the rotating light shadow rotating around the player when the player is not under the light(but in the radius of it) to the multiple lights problem described.
Steps to Repeat:
1. Launch the FPS Tutorial and start the Night Map mission
2. Position the players near the police car
3. Switch from Advanced Lighting to Basic Lighting
4. Walk around the level and check the lights
5. Switching back to Advanced Lighting to show what the lights should look like.
Test Level Video:
Note: If you notice in the video when I turn the flashlight on the police car lights fight the flashlight for visibility, even the stock prefab for the police car has too many lights for Basic Lighting to handle, once Advanced Lighting is enabled everything runs fine.
Platform: Windows 7 64 bit
Target: In-game
Issues: When multiple lights are used in Basic Lighting the engine chooses a select few lights to actually show, while testing the FPS Tutorial I also noticed that Basic Lighting shows tons of lighting problems from the rotating light shadow rotating around the player when the player is not under the light(but in the radius of it) to the multiple lights problem described.
Steps to Repeat:
1. Launch the FPS Tutorial and start the Night Map mission
2. Position the players near the police car
3. Switch from Advanced Lighting to Basic Lighting
4. Walk around the level and check the lights
5. Switching back to Advanced Lighting to show what the lights should look like.
Test Level Video:
Note: If you notice in the video when I turn the flashlight on the police car lights fight the flashlight for visibility, even the stock prefab for the police car has too many lights for Basic Lighting to handle, once Advanced Lighting is enabled everything runs fine.
#2
01/26/2012 (7:42 am)
Any object in BL can only receive a maximum of 4 lights. There's some sort of numerical preference listing on the lights. If they're all set to zero it's likely to fight over what gets displayed, especially as the camera moves. It should be in the docs somewhere.
#3
01/27/2012 (5:30 pm)
@Steve: I'm not having problems with lighting on objects, the police car alone in the scene shows the full array of lights, its the problem of when all the extra lights (flashlight, 2nd police car)enter the scope of the camera view random lights stop working in Basic Lighting.
Torque Owner CSMP
MP Studios
SideNote: I did notice an awesome change in the SpotLight quality in Basic Lighting around 1.1f(or 1.2), gj whoever pulled that one out. :)