1312qohelet wrote:trey31 wrote:High Five!!!
No more shiny "acrylic" jerseys! DLMv1.0 is great.
Thanks for sharing, trey.
You're welcome!
I tested numerous cubemaps, made my own, read a lot on the MS D3DX9 dev website, and ended up coming full circle back to Madden's cubemaps.
The interesting thing is that there are two cubemap shaders being used in-game. One lighting shader and one reflectivity shader. The default 31 Shader (the lighting/shading shader) has extremely plain gradients and has numerous directional issues/conflicts with the global light source at default.
The default 32 Shader has its own issues but that's because of the way the devs integrated reflectivity in the game via D3DX9 Shader Compiler (I can't find any discernable code to edit the shader settings, so I can only alter the textures/cubemaps themselves). Reflectivity is set at or near full strength in the game's code, similar to the way you would set reflectivity for a mirror or chrome object, which is where the shiny acrylic issues stem from. It's also probably why they made this cubemap so dark...
However, that being said, the reflectivity cubemap (32) does have good direction that aligns almost perfectly with the global light source. So after testing and building my own cubemaps for 31 (the lighting/shading file) I decided to try to alter the 32 shader and that's pretty much how I ended up with the Dynamic 31 Shader that has good directional lighting/shading. I simply stole the 32 cubemap, altered levels and some other minor details, and repurposed it for the 31.
The right cubemap for the job has been in the files all along...
The dev team basically just didn't quite understand what they were doing, or didn't know exactly how to do what they were trying to do... Which is probably why there are 4-light-source cubemaps for artificially-lit stadiums (domes/night games) but they don't actually work with the single source global lighting used in every stadium in the game... smh
My M08 mod work is all open-source to anyone who wants to use it in any way, no restrictions or permissions necessary.