incorrect AABB in determineFilterArea - fix filterSize value
Hi,
Radiance filter create some artifact when gloss become low ( ~< 3 ).

It seem to come from incorrect filterSize and thus incorrect filter areas (aabb).
I'm not 100% confident about fix i've done, but, filterAngle is already half the filter cone angle so filterSize should just be :
filterSize = filterAngle / ( texelAngle * facesize )
Moreover, changing filterSizehere can have some side effects I didn't noticed. Maybe we should just double filterSize, locally, in determineFilterAreafunction.
Pierre
Could you tell me how to reproduce the error? I would like to have a look at what exactly is causing the problem.
Can you check if this happens when you filter only on GPU (--numCpuProcessingThreads 0 --useOpenCL true)?
Hi,
I tried both GPU and CPU, they produce different artifacts. Both OK with the fix, but processing time is ~30% longer.
./cmftDebug \
--numCpuProcessingThreads 0 \
--useOpenCL true \
--deviceType gpu \
--input test1.hdr \
--filter radiance \
--glossScale 1 \
--mipCount 0 \
--srcFaceSize 256 \
--dstFaceSize 256 \
--outputNum 1 \
--output0 glosstestGPU \
--output0params hdr,rgbe,latlong
./cmftDebug \
--deviceType gpu \
--input test1.hdr \
--filter radiance \
--glossScale 1 \
--mipCount 0 \
--srcFaceSize 256 \
--dstFaceSize 256 \
--outputNum 1 \
--output0 glosstestCPU \
--output0params hdr,rgbe,latlong

Yup, you're right. Thanks for the report. filterSize is there to speed things up, but it seems that it has a wrong value for small gloss parameters. Using a bigger value for it fixes the problem with the results, but at a performance cost.
I'll have a look over it on first occasion.