For those who might be interested in experimenting, this OBJ+MTL viewer is standalone and is currently using:
- WebGPU imports
- Embedded customized versions of:
- OBJ Loader
- MTL Loader
decompress
function, originally fromTextureUtils.js
file
You can refer to this document for explanation on customized material entries.
This all pretty much narrows down to the following:
- Image formats that should work with OBJ models when specified in the MTL file:
- BMP, DDS, GIF, JPEG, KTX2, PNG, TGA, WEBP:
- DDS, KTX2 and TGA textures will be internally converted to PNG format
- BMP, DDS, GIF, JPEG, KTX2, PNG, TGA, WEBP:
- Test model can be found here and each of the zip files can be loaded as such:
- clicking each of these zip files will take you to the page where you should look for 3 dots button in the top right corner and its option to copy permalink of the file to the clipboard which can then be pasted into the
URL
textbox of this OBJ Viewer - the other option would be to just download the file to a hard drive and load it with the
Browse
option of the OBJ Viewer
- clicking each of these zip files will take you to the page where you should look for 3 dots button in the top right corner and its option to copy permalink of the file to the clipboard which can then be pasted into the
Some models might not work properly but you could always use my other viewers, found on my webpage and export different formats to OBJ+MTL format and then test them with this viewer.
You can get the zipped file of this standalone viewer from my repository.
All further updates will be done there just so I don’t have to keep re-posting it in this forum.