kodogu
A cottage rendered by Preview Studio on the studio backdrop

About

A small tool for Godot 4.7 that renders a 3D model on a dark studio backdrop and saves the picture as WebP in several widths: the preview images an asset library such as this one asks for. Copy the addons/preview_studio folder into a project, open preview_studio.tscn, set the model and the output folder in the inspector, and run the scene. The window shows the picture and the output panel lists the files written: thumbnail-1280.webp, thumbnail-640.webp and thumbnail-256.webp by default. - Reads a .glb or .gltf straight from disk, so the model does not have to be imported first; scenes work too. - Frames the model by itself, in a three-quarter view from the front right. - Settings: file name and widths, view direction, how much of the picture the model fills, the backdrop's two colours and its floor lines, WebP quality, and whether to quit when done. The defaults match this library's own thumbnails. It is a scene with one script of about 150 lines, not an editor plugin: there is nothing to enable, and it changes nothing in a project except the pictures it writes. Run in Godot 4.7.2 with the Compatibility renderer on Windows; other renderers and platforms were not tried. The three pictures on this page are its unedited output for models from the Village Tile Set. Files - preview-studio-godot.zip: addons/preview_studio with the scene, the script, a README and the MIT licence. It contains GDScript. A tool has no model of its own, so this page has no 3D view.

More from BeNeXuS

All by BeNeXuS