Closed marceloroca closed 3 years ago
Can you share the generated images as well? I think it's because png format cannot keep your depth buffer values (between 1 and 10000), they are all clamped to 256. Try saving it to exr like this CHECK(rprFrameBufferSaveToFile(frame_buffer_depth2, "22_depth.exr"));
I've changed to "exr", but I have the same problem, and others problems:
I'm sharing the generated images, the RPR program to generate the images and the RIF program to apply the filter
RPR program is a modified of SDK tutorial 22_material_uber RIF program is a modified from Bloom filter
@marceloroca can you also collect trace files accodring to this manual https://radeon-pro.github.io/RadeonProRenderDocs/en/rif/tracing.html archive them and attach. Thanks.
Here is, rif_trace_1595437696.zip
So, the gray cubes are at about 19-21 meters from camera I set:
rifImageFilterSetParameter1f(filter, "focusD", 20);
I also changed focal length parameter to 100 mm (https://radeon-pro.github.io/RadeonProRenderDocs/en/rif/filters/depth_of_field.html)
rifImageFilterSetParameter1f(filter, "focalL", 100);
and got the image blurred.
thanks for your help, it's working
I've generated color and depth images with RPR , and using the RIF_IMAGE_FILTER_DEPTH_OF_FIELD filter, but the result image is the same that the source.
this is the code:
the depth image is generated with RPR with this code:
The depth image has pixel values between 1 and 10000.
RPR SDK version: 0x00103503 build: 0x92f604e2 RIF SDK version: 1.5.3 commit: 0x47b72111 OS: Windows 10 GPU: Radeon RX 5500 XT Driver: 20.5.1