Page MenuHome

UI: Improved Blend Thumbnails
AbandonedPublic

Authored by Harley Acheson (harley) on Nov 1 2020, 10:42 PM.
Tokens
"Love" token, awarded by heinz1."Love" token, awarded by RedMser."Pterodactyl" token, awarded by DotBow."Love" token, awarded by EAW."Love" token, awarded by jc4d."Love" token, awarded by gilberto_rodrigues."Like" token, awarded by AnadinX."Like" token, awarded by duarteframos."Love" token, awarded by erickblender."Love" token, awarded by HooglyBoogly.

Details

Reviewers
None
Group Reviewers
User Interface
Summary

Currently the thumbnails that represent Blend files are low-res, mostly monochrome, and hard to quickly understand.

This patch fixes one mistake. All of our thumbnails are stored at 256x256 PNGs, but blend thumbnails are actually created at 256, then reduced to 128 and then increased back to 256, making them blurrier than they need to be. This patch also removes the odd dotted frame and darkened portions. And then it shades the thumbnail using random colors (specular highlights, cavity, outlines, etc).

The following image illustrates the changes. The top row shows how the sample blend files look now as thumbnails. The bottom are versions that should be much easier to understand:

Using "random" colors for objects is deliberate here. Many blends could be given thumbnails that use the actual materials and textures, but then that process takes a very long time every time you save. Doing it this way is very fast. It also works well regardless of the state of your materials.

The following shows what my current File Manager (UI scale 1.2, large thumbnails) looks when viewing some sample blend files:

The following is after this patch is applied, along with D9397:

Diff Detail

Repository
rB Blender

Event Timeline

Harley Acheson (harley) requested review of this revision.Nov 1 2020, 10:42 PM
Harley Acheson (harley) created this revision.

I like this look a bit more...

Harley Acheson (harley) edited the summary of this revision. (Show Details)Nov 2 2020, 2:29 AM

Some blends are already given rendered thumbnails that use the actual materials and textures. But it only happens if you don't have an camera in the scene for some reason.

This only works from 2.80 to 2.83 LTS, in 2.90 it doesn't work anymore. :/

This patch fixes one mistake. All of our thumbnails are stored at 256x256 PNGs, but blend thumbnails are actually created at 256, then reduced to 128 and then increased back to 256, making them blurrier than they need to be. This patch also removes the odd dotted frame and darkened portions. And then it shades the thumbnail using random colors (and shadows, cavity, etc).

Currently thumbnails are always stored large (not sure if this is an error?), as far as I can see there is no good reason to do that, so I've submitted a patch D9412: Cache normal/large thumbnails based on display size to store thumbnails at the size shown, this resolves the issue you've described.

Further, this should be split into two patches. Changing draw-style is quite separate from thumbnail size.

Removing the use of "shadow" because that option can add significantly to thumbnail creation time on complex scenes and it wasn't adding much anyway.

@Campbell Barton (campbellbarton) - ..this should be split into two patches. Changing draw-style is quite separate from thumbnail size.

Perhaps, but I really don't really want to show off a nicer way to make these thumbnails and then just have them made at 256, reduced, then enlarged again to 256. "Look at this blurry thing and imagine how much nicer it will be if we separately fix this other issue". LOL.

Harley Acheson (harley) edited the summary of this revision. (Show Details)Nov 2 2020, 8:43 PM
Harley Acheson (harley) retitled this revision from UI Experiment: Blend Thumbnails to UI: Improved Blend Thumbnails.Nov 4 2020, 8:48 PM
Harley Acheson (harley) edited the summary of this revision. (Show Details)Nov 5 2020, 4:06 AM

Updating to current state of master.

Abandoning this patch as all parts are committed or are in other patches:

  • Passepartout remove in 9c395d6275a0
  • Thumbnail size corrected in bf0ac711fde2
  • Random color is an option in experimental D12407