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

The ability to replace CJ clothing and body part models

Open tut001 opened this issue 6 years ago • 8 comments

Is your feature request related to a problem? Please describe. MTA doesn't allow loading/replacing CJ clothing and body parts. (done testing on SP and MTA with modded player.img which on the other hand does work just fine)

Describe the solution you'd like MTA engine should be able to load and replace custom models stored in player.img

Describe alternatives you've considered Very far away there's an alternative being modifying a player.img for your server and having each player install it into their local files. As MTA does render local custom player.img, but can't seem to load/replace using the engineLoadDff/engineReplaceDff.

Additional context Use this for testing if you need to. No errors, only poor rigging. 30541.dff.zip

tut001 avatar Jun 30 '19 16:06 tut001

I've tried to replace model IDs listed in https://wiki.multitheftauto.com/wiki/Clothing_Component_IDs

engineReplaceModel isn't able to replace the ID, isn't it possible to whitelist those IDs?

Brian9221 avatar Jul 21 '19 16:07 Brian9221

yeah, this would be cool, any ideas?

Pirulax avatar Nov 23 '19 14:11 Pirulax

In the meantime I think a shader will work

qaisjp avatar Nov 24 '19 18:11 qaisjp

What about using something like engineRequestModel("cj") to add those IDs into customizable CJ body parts?

Brian9221 avatar Nov 26 '19 19:11 Brian9221

In the meantime I think a shader will work

Shaders work on body parts, but AFAIK there's no way to create vertices in a DirectX 9 vertex shader. So they can replace CJ body parts textures and perform morphing, but not introduce geometric detail to scenes or perform tessellation.

AlexTMjugador avatar Jan 24 '20 13:01 AlexTMjugador

According to this page you can replace TXD's but not DFF's. https://wiki.multitheftauto.com/wiki/Clothing_Component_IDs

tut001 avatar Jan 28 '20 19:01 tut001

I wonder if it will ever be possible to replace body.dff from cj, I don't see it anytime soon mta developers are focused on patches and stuff and not on adding something, I would be happy to contribute more I don't have time to read it all the source code of mta

LiraGamer avatar Aug 19 '21 16:08 LiraGamer

It would be a great addition

Armisael2k avatar May 27 '24 22:05 Armisael2k

Is there any progress?

denjifb avatar Jan 15 '25 11:01 denjifb