Game Development Community

Stylized Diffuse Amount in 1.5

by Faraz Ahmed · in Torque Game Engine · 01/17/2007 (9:23 pm) · 2 replies

We recently upgraded to 1.5 and were moving over our prefs.cs settings into the 1.5 build. One of the light adjustments we were doing in 1.4 was with the $pref::OpenGL::sgDynamicDTSShadingDiffuseAmount variable. By setting it to 0.7 we were able to get a particularly stylized light to fall on our models. This option however does not exist in 1.5 and the lighting code has hardcorded these variables in its implementation in sgLightManager.cc

In 1.4 (sgSceneObject.cc) it was:
// ambient/directional contributions
const F32 directionalFactor = sgLightManager::sgDynamicDTSShadingDiffuseAmount;
const F32 ambientFactor = 1.0f - sgLightManager::sgDynamicDTSShadingDiffuseAmount;

In 1.5 (sgLightManager.cc) it is:
const F32 directionalFactor = 0.5f;
const F32 ambientFactor = 0.5f;

Is there a reason why this adjustable style was removed? Will re-introducing this adjustment in 1.5 have any impact on this new integrated TLK?

Thanks in advance.

#1
01/22/2007 (10:47 am)
That should work great. A number of TLK's lesser known or rarely used features were removed in the 1.5 conversion to keep the code as clean and easy to use as possible.

Btw: some were reintroduced in this resource: TGE 1.5 - Bonus Resource Bundle
#2
01/22/2007 (9:22 pm)
Oh nice, thanks for the link.

FYI, adjusting the stylized look in my opinion is a seriously essential feature that folks would love to tweak if they only knew about it.