Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
5.3.0
-
None
-
15999f14f146b5c04fb40b31b69ceeeece273430
Description
nigel: akennedy: Is there anything that can be done about the way we resize bitmaps when we use the scale property? Even with smooth: true things look poor?
[09:59am] akennedy: nigel: well, we are using bilinear filtering which is the best magnification filter opengl has. if you want minification we could use trilinear i suppose
[09:59am] akennedy: nigel: that's more expensive of course
[10:01am] akennedy: nigel: gunnar: do we mipmap automatically by default?
[10:09am] akennedy: nigel: how much are the icons being scaled by?
[10:09am] gunnar: akennedy: no we don't
[10:10am] akennedy: gunnar: i guess we could add it as an option to Image. it might make sense
[10:10am] gunnar: akennedy: It adds a bit of time to the texture creation, so we would prefer to not do that by default
[10:10am] akennedy: gunnar: yes, i agree
[10:10am] akennedy: gunnar: i just seem to remember andrew or someone saying we did at some point.
[10:10am] gunnar: akennedy: we support it in shadereffectsource
[10:10am] akennedy: gunnar: ahh, that's probably it
[10:10am] nigel: akennedy: not much. 0.5 max?
[10:11am] akennedy: nigel: 0.5 min you mean?
[10:11am] nigel: akennedy: yes
[10:11am] akennedy: nigel: ok, so just to be clear - something like 0.6 then?
[10:11am] nigel: gunnar: akennedy yes I don't need it by default. I just need it in some cases
[10:11am] nigel: akennedy: let me check
[10:11am] akennedy: nigel: if its between 0.5 and 1, there's nothing we can do for you
[10:11am] akennedy: nigel: if its less than 0.5, enabling mipmapping will help
[10:12am] gunnar: nigel / akennedy: The way to do mipmapped images right now would be to put an Image into a ShaderEffectSource, hide the Image and set "mipmap: true; visible: true" on the source
[10:13am] nigel: akennedy: ah it is more than I thought. 0.3
[10:13am] gunnar: nigel / akennedy: it means an extra copy of the Image in memory though, so supporting it directly in Image would have been better
[10:13am] akennedy: nigel: ok, mipmapping will help. file a suggestion perhaps?
[10:13am] nigel: where should that be filed?
[10:14am] akennedy: nigel: with a scale less than 0.5 and without mipmapping, the scaling basically starts dropping pixels (certain pixel values don't contribute at all to the final result)