r/GraphicsProgramming • u/MAIPA01 • Sep 06 '26
Question Struggle in BDPT implementation
Hi I wanted to implement BDPT with PBR materials and MIS but no matter what I do it doesn't look like reference images. I can't find any help with implementation and mostly recently I try finding bugs using Gemini but I know It can halucinate. So is anyone who could help me find relaiable implementation or help with my code. Here I will post my render (denoised using OIDN) vs reference so maybe anyone would help me find direction at least. I have too many lines of code so if any one would like to look at it I can send it in DM.








(edit)
References are from https://benedikt-bitterli.me/resources/, PBRT-v4 and Blender. (All tagged in image caption)
View all comments
Show parent comment
1
u/MAIPA01 Sep 06 '26
I use linear color space on GPU in shaders, so when I load albedo textures I convert them from sRGB to Linear. And when I save image I apply tone mapping and then I convert this image from Linear to sRGB. In all scenes I use Area Light sources with the same intensity value as in references and also with the same color (same values as in blender). I also discovered that maybe I have some energy conservation errors, Could it be it? But why then in some scenes I have more light and in othere scenes I have small amout of light. If someone wonder I load scenes from .glb files which I exported from blender.