imathrowback / telarafly

RIFT world and model viewer. This project is not affiliated with Trion Worlds, Inc, Gamigo, or any of its affiliates.
8 stars 2 forks source link

MTL web path support #21

Open kevinbrill opened 6 years ago

kevinbrill commented 6 years ago

I added support for web paths to the texture file in the .mtl file. The existing code generated paths that worked on the local file system, but not as well on the web.

I added support for the following command line switch:

-objexpmtlweb

When this is set, the textures will be written to the -objexpdir\textures folder as per usual, but the mtl texture path will be set to:

textures/<filename>.dds

which improves compatibility with dds file retrieval using three.js and model files hosted on S3.