sledge icon indicating copy to clipboard operation
sledge copied to clipboard

Automatic Texture application based on model data

Open xana43 opened this issue 6 years ago • 2 comments

I know currently there's no support for any model format with embedded texture data, but OBJ is the most common format (and what is supported) it would be cool if there could be a way to use the MTL file that the OBJ references so that it can apply the texture accordingly.

xana43 avatar May 31 '18 16:05 xana43

Interesting idea. At the moment the architecture is focused around the environment (i.e. textures are provided by the game settings) rather than the document (textures provided by the file you open). I wonder how difficult that change would be...

Of course there's also the problem of how game textures are supposed to interact with external textures, so it might be a bit too difficult unless Sledge starts automatically adding the textures to the game directories so you can see them in-game. And doing that would be quite a lot of work, I think.

LogicAndTrick avatar Jun 01 '18 00:06 LogicAndTrick

in my opinion, I think sledge adding the textures to the game files would be as simple as exporting in a whatever is compatible with the game in the specified directory along side the .map, or .vmf file, and, worse case scenario you'd have to manually compile the textures for that game in particular. Plus, I think simply getting the textures from the MTL file would be easy because the MTL file is pure text describing the material, what image is being used for the material, and how each material is mapped on each face. now this is just my opinion in the difficulty, I have next to no knowledge of programming besides a little bit in c#, c++ and java. So I don't really have an idea how difficult it could be, so try your best to implement this :)

xana43 avatar Jun 01 '18 01:06 xana43