Quote:Also, I can't just import RGB and Alpha separatly for images like for textures.
You don't need separate image imports for RGB and Alpha.
BMP TGA PNG WEBP PSD TIF all support RGB and Alpha, they just need to be created correctly.
There are some Image methods that could help with this:
Image& transparentToNeighbor (Bool clamp=true, Flt step =1); // replace transparent pixels with neighbors
Image& transparentForFiltering(Bool clamp=true, Flt intensity=1); // adjust transparent pixels to optimize for filtering
perhaps you could make some tool that:
reads your image files, applies the transformation from the method, and saves to another folder, then import those adjusted images to Esenthel Editor.
Please test before using and make backup of your images.
There's something like pre-multiplied alpha, however the engine operates on non-pre-multiplied alpha mode. That would require a lot of research, and testing to be added to the engine.
Also:
'transparentToNeighbor' is already integrated into the Editor.
When you right-click on Image element, and select reload
Then change path:
"....\image.png"
to
"....\image.png?fixTransparent"
by adding the
?fixTransparent
at the end.
This is an easy way to post-process images during import process.
If 'transparentForFiltering' image method would work better for you, I could add it for the importer as a file name param command too.