multitheftauto / mtasa-resources

This project maintains a list of up-to-date resources that come with Multi Theft Auto.
https://multitheftauto.com
MIT License
154 stars 157 forks source link

Texture replacement tool as a part of map editor #233

Open annnnnnnn opened 4 years ago

annnnnnnn commented 4 years ago

I remember when I posted this and was told that there was no such thing out there I was like "alright, they'll probably add that sooner or later so I'll just wait". It's been 3 years and I am still using a fkn sa-mp filterscript to texture my maps, exporting them to samp and importing them back to mta over and over again.

So here I come again, kindly asking for this feature to be added. Basic functions would include:

Textures that are in the game only.

ArranTuna commented 3 years ago

"Textures that are in the game only." - I don't think it's possible with the current scripting functions to copy a texture from the game so that a shader can be used to apply that texture to something else.

"Applying textures for a single index and all indexes of an object

Displaying indexes on objects (would be great, but can live without it)" - No idea what these are even about.

Yamsha75 commented 3 years ago

If you mean texture names, then there is a shader which highlights textures with their names, search for shader examples in MTA wiki

ArranTuna commented 3 years ago

Oh yes there's shader_tex_names but no way to get the raw data of a texture.

jayceon123 commented 3 years ago

Oh yes there's shader_tex_names but no way to get the raw data of a texture.

You can get with this: https://wiki.multitheftauto.com/wiki/EngineGetModelTextures

Fernando-A-Rocha commented 2 years ago

This is totally possible and there should already be a Map Editor feature that allows you to change object textures with other GTA:SA textures, similar to what SAMP Texture Studio lets you do. I've been developing this Editor extension, I'll see how possible it is to include it in the editor's code itself...

Fernando-A-Rocha commented 4 months ago

This is totally possible and there should already be a Map Editor feature that allows you to change object textures with other GTA:SA textures, similar to what SAMP Texture Studio lets you do. I've been developing this Editor extension, I'll see how possible it is to include it in the editor's code itself...

Well, I did achieve this as an add-on to the editor, because I was unable to integrate it into the editor resources at the time.

It would be better to include such scripts into the Map Editor ecosystem itself.