Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The ability to replace CJ clothing and body part models #1017

Open
tut001 opened this issue Jun 30, 2019 · 9 comments · May be fixed by #3967
Open

The ability to replace CJ clothing and body part models #1017

tut001 opened this issue Jun 30, 2019 · 9 comments · May be fixed by #3967
Labels
enhancement New feature or request

Comments

@tut001
Copy link
Member

tut001 commented Jun 30, 2019

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 tut001 added the enhancement New feature or request label Jun 30, 2019
@Brian9221
Copy link

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?

@ccw808 ccw808 changed the title The ability to replace contents in player.img The ability to replace CJ clothing and body part models Aug 20, 2019
@Pirulax
Copy link
Contributor

Pirulax commented Nov 23, 2019

yeah, this would be cool, any ideas?

@qaisjp
Copy link
Contributor

qaisjp commented Nov 24, 2019

In the meantime I think a shader will work

@Brian9221
Copy link

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

@AlexTMjugador
Copy link
Member

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.

@tut001
Copy link
Member Author

tut001 commented Jan 28, 2020

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

@LiraGamer
Copy link

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

@Armisael2k
Copy link

It would be a great addition

@denjifb
Copy link

denjifb commented Jan 15, 2025

Is there any progress?

@TheNormalnij TheNormalnij linked a pull request Jan 19, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants