Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Support WebP Texturemaps in WaveFront OBJ MTL Files #1700

Open
Saijin-Naib opened this issue Nov 10, 2024 · 3 comments
Open
Milestone

Comments

@Saijin-Naib
Copy link

Is your feature request related to a problem? Please describe.
In the pursuit of a texturemap format that achieves good compression, easy tooling, and supports transparency well, I have settled in WebP.

Describe the solution you'd like
I would love if F3D would be able to read the WebP texutremaps for my WaveFront OBJ files as specified in their MTL file. Currently Blender, MeshLab, and CloudCompare support this, though F3D/Exhibit do not currently.

Describe alternatives you've considered
Maintaining current PNG texturemaps and accepting incredibly inflated filesize.

Additional context
A conversion from TIFF/TGA/PNG to WebP with the right settings results in a shockingly good compressed texturemap with no visible issues, so I think it might be something that could catch on if supported.

Contribution
I can not currently contribute this feature, but I can test Flatpak builds of F3D/Exhibit, and possibly native build for Alpine if I can get the APKBUILD written successfully (I think F3D should be reasonable to do).

@Meakk
Copy link
Member

Meakk commented Nov 10, 2024

For the OBJ format, a patch is needed to use the VTK image factory, as described in #1281

Regarding the WebP, we can create a new module to add the format to the image factory, just like we did with EXR (see vtkF3DEXRReader) and integrate the WebP decoder library.
Alternatively, we can integrate FreeImage that wraps many formats using a unified API.

@Meakk Meakk added type:enhancement New feature or request source:VTK labels Nov 10, 2024
@Saijin-Naib
Copy link
Author

Ah, wow, that sounds amazing!

Thanks for the great explanation.

@mwestphal mwestphal added this to F3D Nov 10, 2024
@mwestphal mwestphal moved this to Investigate in F3D Nov 10, 2024
@Saijin-Naib
Copy link
Author

Have a working Alpine package, and am enabling more modules as I play dependency packaging whack-a-mole 🤣

So, I can likely test any new builds easily now.

@mwestphal mwestphal added this to the 3.1.0 milestone Dec 19, 2024
@mwestphal mwestphal removed the type:enhancement New feature or request label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Investigate
Development

No branches or pull requests

3 participants