cmft icon indicating copy to clipboard operation
cmft copied to clipboard

"--edgeFixup warp" does not work without "--filter radiance"

Open Raikiri opened this issue 7 years ago • 1 comments

So I'm using cmft to generate cubemaps from latlong images like this:

cmft.exe --input someInputFile.hdr --outputNum 1 --output0params dds,rgba32f,cubemap --generateMipChain true --dstFaceSize 128 --output0 someOutputFile.dds

And I encountered a problem of significant seams especially on lower mip levels when sampling this cubemap in shader. Conveniently enough, there is already a fix for that, so I tried adding "--edgeFixup warp" flag but it seemed to do nothing. According to documentation it only works with "--filter radiance" which is a shame because this filter produces significantly blurrier cubemap.

Is there a way to generate non-blurry cubemap with seamless sampling?

PS Once again, thanks a lot for the great tool, Dario. It has been of great help to me.

Raikiri avatar Aug 09 '17 09:08 Raikiri

By carefully studying parameters of radiance filter, I discovered "--excludeBase true". I thought it would exclude base mip level from resulting mip chain, but turns out it leaves this level intact instead. I'm ok with having seams on base mip level, mostly concerned about higher ones. Is this parameter intended to be used in cases such as mine?

Raikiri avatar Aug 09 '17 09:08 Raikiri