Archive 17/01/2023.

Tonemap too dark

magic.lixin

here is my setup:

RenderPath@ renderpath = renderer.viewports[0].renderPath.Clone();
renderpath.Load(cache.GetResource(“XMLFile”,“RenderPaths/ForwardHWDepth.xml”));
renderpath.Append(cache.GetResource(“XMLFile”,“PostProcess/AutoExposure.xml”));
renderpath.Append(cache.GetResource(“XMLFile”,“PostProcess/BloomHDR.xml”));
renderpath.Append(cache.GetResource(“XMLFile”,“PostProcess/Tonemap.xml”));
renderpath.Append(cache.GetResource(“XMLFile”,“PostProcess/ColorCorrection.xml”));
renderpath.SetEnabled(“TonemapReinhardEq3”, false);
renderpath.SetEnabled(“TonemapUncharted2”, true);
renderer.viewports[0].renderPath = renderpath;

it`s too dark if enable tonemap.

with tonemap:

without tonemap:

am I doing something wrong ?

codingmonkey

Probably you need tweak uniforms for tonemaping

world.camera.effectRenderPath->SetShaderParameter(“TonemapMaxWhite”, 1.8f);
world.camera.effectRenderPath->SetShaderParameter(“TonemapExposureBias”, 2.5f);

magic.lixin

thanks, it looks brighter now.