Hi again, just noticed that there is a few problems with deferred pipeline when using more than one light source. In Chicago sample when I'm adding another light to scene :
Code:
// Add light source
H3DNode light = h3dAddLightNode( H3DRootNode, "Light1", lightMatRes, "LIGHTING", "SHADOWMAP" );
h3dSetNodeTransform( light, 0, 10, 0, -30, 0, 0, 1, 1, 1 );
h3dSetNodeParamF( light, H3DLight::RadiusF, 0, 50 );
h3dSetNodeParamF( light, H3DLight::FovF, 0, 90 );
h3dSetNodeParamI( light, H3DLight::ShadowMapCountI, 4 );
h3dSetNodeParamF( light, H3DLight::ShadowSplitLambdaF, 0, 0.9f );
h3dSetNodeParamF( light, H3DLight::ShadowMapBiasF, 0, 0.001f );
h3dSetNodeParamF( light, H3DLight::ColorF3, 0, 0.8f );
h3dSetNodeParamF( light, H3DLight::ColorF3, 1, 0.2f );
h3dSetNodeParamF( light, H3DLight::ColorF3, 2, 0.2f );
H3DNode light2 = h3dAddLightNode( H3DRootNode, "Light2", lightMatRes, "LIGHTING", "SHADOWMAP" );
h3dSetNodeTransform( light2, 0, 10, 0, -30, 180, 0, 1, 1, 1 );
h3dSetNodeParamF( light2, H3DLight::RadiusF, 0, 50 );
h3dSetNodeParamF( light2, H3DLight::FovF, 0, 90 );
h3dSetNodeParamI( light2, H3DLight::ShadowMapCountI, 4 );
h3dSetNodeParamF( light2, H3DLight::ShadowSplitLambdaF, 0, 0.9f );
h3dSetNodeParamF( light2, H3DLight::ShadowMapBiasF, 0, 0.001f );
h3dSetNodeParamF( light2, H3DLight::ColorF3, 0, 0.2f );
h3dSetNodeParamF( light2, H3DLight::ColorF3, 1, 0.2f );
h3dSetNodeParamF( light2, H3DLight::ColorF3, 2, 0.8f );
it looks like this with Forward pipeline enabled :
But when I'm enabling the Deferred pipeline, one of the light sources disappears :
and Chicago sample crashes after flying a few seconds around the scene.
test system : Windows 7 + ATI RadeonHD 4890 + 10.6 drivers + Horde3D Beta4 r251Best Regards, Siavash.