mtasa-resources icon indicating copy to clipboard operation
mtasa-resources copied to clipboard

Texture replacement tool as a part of map editor

Open annnnnnnn opened this issue 5 years ago • 7 comments

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:

  • Texture preview (just like with objects)

  • Applying textures for a single object and all objects of the same ID

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

  • Displaying indexes on objects (would be great, but can live without it)

Textures that are in the game only.

annnnnnnn avatar Aug 16 '20 06:08 annnnnnnn

"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.

ArranTuna avatar Nov 22 '21 12:11 ArranTuna

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

Yamsha75 avatar Nov 22 '21 13:11 Yamsha75

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

ArranTuna avatar Nov 22 '21 13:11 ArranTuna

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

jayceon123 avatar Nov 22 '21 13:11 jayceon123

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 avatar Jun 04 '22 14:06 Fernando-A-Rocha