[2.2] How to export traditional PCC's textures/info for debugging?
Posted: Sat Mar 09, 2019 4:40 am
Hi!
For traditional PCC (non-per-pixel), how can I save PCC's textures (probe's cubemap, blended cubemap) and useful information for debugging? I can already export probes' information (shape/area/camerapos etc), but I need to save cubemap textures for easier analysis and debugging (for example, I suspect some probe's cubemap is completely black). I used to check textures in RenderDoc but it's very time-consuming.
Is there any code/psedu-code for that? I can save normal 2D textures but since it's cubemap, and the PCC class shared some code for traditional and per-pixel modes, I'm a bit lost...
My current problem is that my catch-all probe (a big probe outside everything) seemed not working in SOME cases. I want to it to be a fallback probe so that even if the camera is outside all "regular" probes, we can still see some reflections (provided by the fallback probe). But in SOME cases, when the camera is outside the main area of interest, all reflections are gone. I think in the current implementation (of traditional PCC), when the camera is not inside any probe, the closest probe will be used, so maybe the probe's cubemap is blank? That's why I want to export probes' cubemaps to inspect manually.
For traditional PCC (non-per-pixel), how can I save PCC's textures (probe's cubemap, blended cubemap) and useful information for debugging? I can already export probes' information (shape/area/camerapos etc), but I need to save cubemap textures for easier analysis and debugging (for example, I suspect some probe's cubemap is completely black). I used to check textures in RenderDoc but it's very time-consuming.
Is there any code/psedu-code for that? I can save normal 2D textures but since it's cubemap, and the PCC class shared some code for traditional and per-pixel modes, I'm a bit lost...
My current problem is that my catch-all probe (a big probe outside everything) seemed not working in SOME cases. I want to it to be a fallback probe so that even if the camera is outside all "regular" probes, we can still see some reflections (provided by the fallback probe). But in SOME cases, when the camera is outside the main area of interest, all reflections are gone. I think in the current implementation (of traditional PCC), when the camera is not inside any probe, the closest probe will be used, so maybe the probe's cubemap is blank? That's why I want to export probes' cubemaps to inspect manually.