godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.53k stars 21.26k forks source link

No thumbnails on 3D scenes #47267

Open jocamar opened 3 years ago

jocamar commented 3 years ago

Godot version: 3.2.3 and 3.2.4RC4

OS/device including version: Windows 10 PC. Tested both GLES3 and 2.

Issue description: No matter how many times I save a scene, or even if I delete the cache folder in the Windows temp folder, no thumbnails are generated for 3D scenes. See the image below.

image

Thumbnails should be generated automatically for 3D scenes just as they are for 2D scenes. There's also no preview image when hovering over the scene tab like there is for 2D scenes.

Steps to reproduce: Create any 3D scene with a simple meshinstance node and save it.

Minimal reproduction project: testthumbnails.zip

golddotasksquestions commented 3 years ago

Can confirm, my 3D scenes also don't have a thumbnail, and instead show the same "file" icon graphic in 3.2.3 and 3.3. RC6

YuriSizov commented 3 years ago

It would be nice to narrow down the conditions, because it works fine for me with the presented MRP:

image

If someone can reproduce this issue, can you try this and see if the previews are generated at all and it's just an issue with displaying them or not?

  1. Create a new folder for Godot executable and put the Godot executable you use there.
  2. Create a ._sc_ file next to the executable to make it run in self-contained mode.
  3. Run the executable, import and open your project.
  4. Open a 3D scene and save it.
  5. From the folder with the Godot executable open \editor_data\cache and see if there are PNG files named similar to resthumb-*.png, and if they contain any image data.
  6. Please report what you find here.
brachna commented 2 years ago

Had same issue, but on Godot 3.4.4 it disappeared. I had to resave .tscn files for thumbnails to show up.

Problem resurfaces again when following is done:

  1. removing project in project manager
  2. renaming project directory
  3. importing project again
  4. thumbnails lost again and tscn have to be resaved again
Calinou commented 2 years ago

@jocamar Can you (or anyone else) still reproduce this bug in Godot 3.4.4 or any later release? Specifically, when following the above steps: https://github.com/godotengine/godot/issues/47267#issuecomment-1093338671

golddotasksquestions commented 2 years ago

@Calinou

I can't replicate the issue anymore in Godot 3.4.4 stable. I also tested to remove the project from the project list, then import it again, but the thumbnails showed up as expected, no issue.

akien-mga commented 2 years ago

Thanks, closing as fixed.

golddotasksquestions commented 2 years ago

@Calinou @akien-mga

Sorry, I spoke too early! I forgot to rename the project folder.

If I don't rename it: no issue If I do rename it before importing, I can confirm what @brachna says: the issue is back as described. Saving the 3D scene will make the thumbnail reappear.

golddotasksquestions commented 2 years ago

I also noticed I could not find the button to toggle between thumbnail and list view any more in both 3.4.4 and 4.0 alpha10. Bug description: https://github.com/godotengine/godot/issues/62456

YuriSizov commented 2 years ago

I think that reports by @brachna and the later one by @golddotasksquestions are unrelated to the OP. The fact that renaming the folder makes the previews disappear is expected. Godot editor tracks project-related cache based on the project's system path. If you change path, your cache is lost. You can manually go to the old cache folder and copy files over to the new one, but that's about it.

In 4.0 this should not happen, as we now store the project cache in the .godot subfolder of the project folder.

And the OP never mentioned renaming the project folder.