Ayu Tsukimiya, on 11 February 2012 - 03:18 AM, said:
What's wrong with the lighting? The videos of Sonic in the Unleashed levels look like they have no sun/source of light. Have you guys found out where that stuff is, yet?
I'll repeat myself, but I don't blame you for trying to find an answer in this big-ass thread.
Both games handle shadows differently. Unleashed GIA data(which handles the cool lighting that reflects light into objects) doesn't have shadows pre-baked into it like Generations does. Shadows are cast dinamically(and they do cast into objects and Sonic correctly. The problem is in fact terrain doesn't receive shadows of any kind, not even from Sonic. The sun is there(in fact, it's the same directional light as in Unleashed), but the problem is more "terrain receiving shadows" related.
You should also note it looks a bit dark because the color correction makes it darker, since it looks too bright with no shadows. It's the same effect as if you were looking directly into the sun and then got under a tent; you would see everything much darker until your eyes adjusted to the darker tone. There's also the thing that I'm applying some manual correction to these GIA maps since the gamma tones seem to have changed between both games, and I won't do any more corrections on them until we get shadows working.
I did a post a few pages back trying to track the problem down to the specific material files. It's not related at all to materials since putting an Unleashed material into a Generations stage will work just fine related to shadows. Having a look into the terrain formats myself with a lot of help from Darkspines, I'm hopeful that I will find the solution when trying to make terrain imports of my own. It's not related to collision, or GIA data, or something with the XMLs(placing generations geometry inside an Unleashed level lets shadows cast regardless)
You should also note that normal mapping doesn't seem to work on Unleashed materials yet, nor reflections are working correctly. We're hoping to be able to fix that once we have a much better look into the material format. Generations uses a single .material file to load everything. While it does have compatibility with Unleashed materials, the latters are just a mess. They depend on a .material file, .texture files, and .texset files for making a SINGLE material!