f3d-app / f3d

Fast and minimalist 3D viewer.
https://f3d.app
BSD 3-Clause "New" or "Revised" License
2.93k stars 216 forks source link

Thumbnailer on Debian only works for stl files (and uses weird angles) #227

Closed Auravendill closed 2 years ago

Auravendill commented 2 years ago

Describe the bug I installed f3d, because it seemed to offer exactly what I needed: A way to view and preview obj files. But I discovered, that while obj files can be opened without issue, their thumbnails do net get generated. So only stl thumbnails seem to be actually generated (and I tbh I had a tool for that already)

To Reproduce Steps to reproduce the behavior:

  1. Install f3d for Debian 11 from the OpenSuse page
  2. Reboot
  3. look at stls working fine and obj being ignored

Expected behavior All supported files should get thumbnails generated (and the angle from which they are rendered should be sensible)

System Information:

F3D Information Paste the content of f3d --version: f3d 1.2.1

F3D - A fast and minimalist 3D viewer Version: 1.2.1 Build date: 2021-04-25 14:24:53 System: Linux x86_64 Compiler: GNU 10.2.1 RayTracing module: OFF Exodus module: ON OpenCASCADE module: OFF Assimp module: OFF VTK version: 9.0.1 (build 1)

Copyright (C) 2019-2021 Kitware SAS. Copyright (C) 2021-2022 Michael Migliore, Mathieu Westphal. License BSD-3-Clause. Written by Michael Migliore, Mathieu Westphal and Joachim Pouderoux.

Additional context Add any other context about the problem here. While stls do work, they just don't look quite right either: The stl thumbnails get generated from straight above, which in most cases is quite bad. E.g. an owl from above in white on black isn't much more than a blob... The black background instead of no background (like with stl-thumb) also looks outdated.

mwestphal commented 2 years ago

See this guide to diagnose the issue. Thumbnails are a bit finicky. https://github.com/f3d-app/f3d#linux-1

Since .stl thumbnails are "working", this is probably a mimetype issue, so you probably need to update your mimetypes with a command like:

sudo update-mime-database ~/.local/share/mime/

or

sudo update-mime-database /usr/share/mime

But make of the location of the mime type files installed by your package manager.

As for the looks of the stl thumbnails, we had to make a choice for the Y direction, but you can change it by modyfing the f3d.thumbnailer file in:

/usr/share/thumbnailers

And modify it as you see fit. This is not perfect, we hope to improve that in the future.

mwestphal commented 2 years ago

Did you had a chance to test it @Auravendill ?

I have not been able to reproduce on my ArchLinux so far.

mwestphal commented 2 years ago

No answer from OP, closing.

shdbwa commented 2 years ago

I got some wired issues, opening a folder with .obj files kioslave5 : kf.kio.slaves.thumbnail: Failed to load "obj-thumbnailer" I have .stl preview, but no .obj, .fbx preview

Meakk commented 2 years ago

What is obj-thumbnailer? Looks like you have a conflict between F3D and another tool. Wdyt @mwestphal ?

mwestphal commented 2 years ago

Never seen that, what is the content of your /usr/share/thumbnailers @shdbwa ?