dariomanesku / cmft

Cross-platform open-source command-line cubemap filtering tool.
Other
822 stars 93 forks source link

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

Open Raikiri opened 7 years ago

Raikiri commented 7 years ago

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 commented 7 years ago

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?