[Feature Request] Better .mtl file support
DaleHat opened this issue ยท 3 comments
I recently started using this epic mod and so far i only have 1 request add support for map_Kd in the .mtl file, it would help save space as many models i am using require the same textures and if support for map_Kd was added it could access the same files without the need for duplicate textures
map_Kd A:\Minecraft\modpack\Config\blockbuster\models\Textures\this_is_a_example\texture1.png
or however it is written depending on where the file is located it could even have resource pack support allowing textures to be changed depending on the texturepack
Hello, thanks! ๐
it would help save space as many models i am using require the same textures and if support for map_Kd was added it could access the same files without the need for duplicate textures
There is already support for that via map_Kd_path
instruction. You can edit the MTL file and add under map_Kd
a map_Kd_path
instruction like this:
newmtl ...
...
map_Kd ...
map_Kd_path minecraft:textures/entity/steve.png
This instruction allows to specify a resource location within Minecraft's resource pack system, so for Blockbuster it would be something like map_Kd_path b.a:custom_gun/skins/barrel.jpg
. I don't want to support full paths, because then it would be a nightmare implementing cross platform file paths, and it would be require tweaking every time you want to share a model with other people.
also maybe add support for
map_Kn A:\Minecraft\modpack\Config\blockbuster\models\Textures\this_is_a_example\texture1_n.png
map_Ks A:\Minecraft\modpack\Config\blockbuster\models\Textures\this_is_a_example\texture1_s.png
which would help people using shaders
Unfortunately, it's very difficult to add this as well. This is Optifine's territory.
also maybe add support for
map_Kn A:\Minecraft\modpack\Config\blockbuster\models\Textures\this_is_a_example\texture1_n.png
map_Ks A:\Minecraft\modpack\Config\blockbuster\models\Textures\this_is_a_example\texture1_s.png
which would help people using shaders
@DaleHat ๐