Game Development Community

GLOBAL sun light still broken?

by JPaxson · in Torque Game Engine Advanced · 02/21/2007 (3:02 pm) · 5 replies

TGEA "Release" 1. Global lighting is still broken? Clean TGEA R1 install, using the terrain_water_demo. Sun's light color and ambient color doesnt affect the terrain (still) (Atlas2), and the only object type I could see that had any effect from the sun light color and ambient color were the wheels on my vehicles that by the way still dont cast shadows.

#1
02/26/2007 (10:34 am)
Atlas currently uses the baked in lighting from the terrain generation tool.
#2
02/26/2007 (10:50 am)
Should Atlas terrain features cast shadows? Dynamically? We're going to be implementing a dynamic day/night cycle in our game and we were hoping that terrain features were change their shadowing as the sun tracked across the sky.
#3
02/27/2007 (7:38 am)
Thanks for the reply, John, I appreciate it. I'm honestly not trying to be obtuse here, but I cant for the life of me imagine how a global light not affecting terrain and water made it as a release feature or lack thereof. The lighting kit lights are sweet, and baked shadows on Atlas are ok, but a global light affecting everything in the scene is such a basic feature that everyone needs.
#4
03/01/2007 (1:04 am)
I'm just beginning to learn shader coding... but recently I've been wondering if it isn't worth trying to apply the same methodology to the Atlas terrain shaders as with other objects. Should that work, adding a bit of code to add a modifier to the application of the lightmap would be academic. If you want a healthy performance hit, you could even apply it as the last pass over a blended texture terrain. The question is if Atlas terrains utilize shaders as any other object would.

Another option is to modify the lightmap in memory based on ambient light values before it is passed to the shader for application to the terrain.

It's not dynamic shadows, but it would at least allow for a hacky way to modify the terrain lightmap in realtime.

I think I'm going to play with this over the next week. The possibility of a relief mapped terrain is most appealing if only for screenshot value. :)
#5
03/01/2007 (7:46 pm)
It has been stated atlas really wasnt a priority for 1.0 but they may be working on this now.