thicket icon indicating copy to clipboard operation
thicket copied to clipboard

Resolution of preview image is bad

Open tdapper opened this issue 5 years ago • 2 comments

The preview image (in both, browser and property editor) currently is really low resolution. That doesn't look good and also makes it hard to make out details that may be helpful to consider when picking a plant in the browser.

tdapper avatar Oct 24 '20 12:10 tdapper

Thanks for reporting this issue.

This is one of the many areas where I have found the Blender UI toolkit to be frustratingly rigid and limiting. The current mechanism uses a scaled icon, so while the source image is the higher resolution preview shipped by Laubwerk with the Plant Kits, the Blender preview/icon mechanism scales it down to be used as an icon, and then we scale it back up to use it as a preview. It's an admittedly bad solution.

The solutions I've explored on the Blender development forums to improve the image quality have other limitations which I found to be worse tradeoffs than the image resolution.

So this needs to be addressed, but I don't yet know how we can address it. Marking as an enhancement and we will continue to work with the Blender dev community to find a better solution.

dvhart avatar Oct 24 '20 15:10 dvhart

I've kept digging for a better solution, and there just does not appear to be anything we can use in the UI from Python that will show the full resolution image, rather than a scaled icon. Even the "blender way" using template_icon_view shows the same pixelation (and indeed, you pass it an icon_id). Also.... it's a terrible widget for any more than about 8 thumbnails.

Screen Shot 2020-11-19 at 10 37 11 PM

dvhart avatar Nov 20 '20 06:11 dvhart

Due to changes in the Laubwerk API and the lack of current API documentation, I am no longer able to develop or maintain Thicket. Consider trying Laubwerk’s fork of thicket:

https://github.com/Laubwerk/player-for-blender

Thank you for using Thicket, it was a lot of fun to develop.

dvhart avatar Jul 05 '24 18:07 dvhart