material-maker icon indicating copy to clipboard operation
material-maker copied to clipboard

Thumbnail from preview3D for .ptex files

Open SolidCapo opened this issue 4 months ago • 7 comments

Feature/enhancement description:

I'm a blender user and it's amazing to be able to see the files with the miniature of the camera, maybe there could be something similar using the preview3D when saving a file no? and if this could be applied in this 2 cases, would be awesome:

  1. File manager of the OS (I'm using Linux Nobara Gnome for example):
Image
  1. Material's Maker FileDialog:
Image

SolidCapo avatar Aug 01 '25 16:08 SolidCapo

Godot's FileDialog node does not support file previews in thumbnails, so this can't be implemented until https://github.com/godotengine/godot-proposals/issues/6831 is implemented on the engine side.

Calinou avatar Aug 01 '25 20:08 Calinou

Oh ok...well...i'll go over there to se if we can make some noise ;P cause that would be awesome :D

SolidCapo avatar Aug 04 '25 16:08 SolidCapo

https://github.com/godotengine/godot/pull/108147 will allow this.

KoBeWi avatar Aug 04 '25 17:08 KoBeWi

Oh ok, but wait a second, I've just figured out that it seems that the FileDialog is for when opening files from Material Maker right? that would be great too! and it's nice to see that @KoBeWi is already waiting for approval, but I was in fact talking about thumbnails but directly on the OS file manager, for example, i'm in Linux Nobara Gnome and I can see al the miniatures of the blender files too, not only from the dialog inside blender. Not sure if I explain my self, but in fact the image that I've uploaded is the Gnome File Manager...it's not inside Material Maker.

PS: I've updated the initial Issue to be clearer

SolidCapo avatar Aug 04 '25 17:08 SolidCapo

OS file manager thumbnails need OS-specific implementations (e..g. shell extensions on Windows). These typically work by calling the program with a dedicated command line argument to generate a thumbnail which is then written to a special folder, and this thumbnail is then displayed by the OS file manager.

It's certainly possible to do with Material Maker, but I expect thumbnail writing to be fairly slow given its relatively long startup times (Blender generally starts up faster than Material Maker).

Calinou avatar Aug 04 '25 20:08 Calinou

It would probably be possible to embed the thumbnail in the .ptex file when saving it. Is it worth the effort, I don't know.

RodZill4 avatar Aug 05 '25 05:08 RodZill4

Yeap, I'm no programmer, but I guess blender does it like that, saving it directly on file and just taking a screenshot of the cam when saving, it could be the same with the preview3d in Material Maker I suppose, and worth it? I think so cause some times you want to share files or arrange them and not having to open the program by itself to do it no? :P

SolidCapo avatar Aug 06 '25 16:08 SolidCapo