GTA V character (Player, NPC) modding

GTA:V Modding with ZModeler3 discussion.
User avatar
Z@gor
Posts: 28
Joined: Tue Jan 09, 2007 10:09 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Z@gor »

Thank you very much for the information Oleg.
Because the facial animation does not work properly in the models that I have transferred to the game, the mouth, jaw and eyes look awkward. How can I completely disable the eye and mouth animation? How can I delete it? There are detailed facial animation descriptions, but I want to disable it completely.
User avatar
Oleg
Site Admin
Posts: 14095
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

just paint "Head" bone influence to full strength on entire head including eyes, lips, jaws.
ajitsuke0823
Posts: 5
Joined: Tue Dec 01, 2020 6:56 am

Re: GTA V character (Player, NPC) modding

Post by ajitsuke0823 »

Hey, guys! I tried converting this non-streamed ped to streamed ped, but I'm stuck on a problem. Could you help me?
https://www.gta5-mods.com/player/sao-fa ... al-rigging

I'm a beginner in ZModeler3, so I did the following steps which I searched on the net.

1. Import yft file. (Only checked "Combine with existing models" and "Reuse materials".)
2. Rename "ggo_llenn" to ".global"
3. delete ".mesh"
4. Import ydd file. (Only checked "Combine with existing models" and "Reuse materials".)

Then, I tried moving some bones, but the most part didn't follow the bones.
Only "head_000_r" followed the bones.

It works fine when I tried same steps using other peds.

Do you have any good solutions in regards to that?

I'm sorry that I'm not good at English.
User avatar
Oleg
Site Admin
Posts: 14095
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

looks like other .mesh did not got bind to .skel inside .global. You can hide unnecessary parts/branches - then hover any mesh (that doesn't follow bones movement) in viewport - skeleton should highlight in lime color. If it doesn't then given .mesh is not bind to the skeleton.

bones movement will affect .mesh object when "Setup mode" (rest pose) on Skeleton is toggled off.
ajitsuke0823
Posts: 5
Joined: Tue Dec 01, 2020 6:56 am

Re: GTA V character (Player, NPC) modding

Post by ajitsuke0823 »

Thank you for your reply, Oleg!
I did what you told me.
But skeleton highlighted in lime color when I hover any mesh.

Please look at picture in this URL.
https://imgur.com/gallery/lWhYAnJ

Setup mode was toggled off.

Also, If you don't mind, please try using this ped.
https://www.gta5-mods.com/player/sao-fa ... al-rigging
User avatar
Oleg
Site Admin
Posts: 14095
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

The .ydd file was not created by ZModeler and does not follow game model layout pattern. It looks like it was created or modified by some debug version of software (probably dev version of codewalker or something like that). More precise, all models except head component missed skeleton porting information, while native models contain this info. I assume the game can handle this scenario, even though it does not look correct.

I've made an update in import code to respect rigging information on vertices even when no skeleton porting information is available, so the model should be loaded as rigged.

Also, the geometry was not loaded properly and each vertex was duplicated, producing an excessive amount of vertices. You can fix this on each geometry mesh by selecting its vertices, then use Modify\Weld with "Multiple targets" option toggled on; specify 0 distance and 0 uv tolerance value and 30 normals angles for smoothness. You will get a significant vertices count drop and exported file size drop too.
ajitsuke0823
Posts: 5
Joined: Tue Dec 01, 2020 6:56 am

Re: GTA V character (Player, NPC) modding

Post by ajitsuke0823 »

You made an update? Wow, It's amazing! Thank you.
When will this update released?
User avatar
Oleg
Site Admin
Posts: 14095
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

it have become available the same day I posted the message. Make sure to press green down-arrow icon in the bottom of ZModeler window, so it could download updates.
ajitsuke0823
Posts: 5
Joined: Tue Dec 01, 2020 6:56 am

Re: GTA V character (Player, NPC) modding

Post by ajitsuke0823 »

My ZModeler3 successfully updated! Thank you.
But, another problem appeared.

I tried selecting vertices to use "Modify\Weld".
But, only uppr vertices could not be selected even though I used "Select\All".
Vertices except for uppr could be selected properly.

Also, mysterious orange box frame was displayed with uppr.
I think this frame might relate to current problem.

Image
User avatar
Oleg
Site Admin
Posts: 14095
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

yes, the frame is a bounding box for a "group". The group appeared because ZModeler can not handle single object with more than 64K vertices, it have to group several geometries into one object. So, your task is to dismiss, ungroup, weld within each mesh; attach final meshes one to another to combine them together and weld again. you will have less solid wireframe lines, most of them should get dimmed (on merged vertices over neighbor triangles the wireframe line is dimmed/faded. when vertices are not weld and duplicated - the line is solid).
ajitsuke0823
Posts: 5
Joined: Tue Dec 01, 2020 6:56 am

Re: GTA V character (Player, NPC) modding

Post by ajitsuke0823 »

I successfully converted this ped to streamed ped. Thank you for your help and support!
If I have any problems, I might have to contact you again.
Frostyy
Posts: 37
Joined: Wed Nov 29, 2017 1:54 am

Re: GTA V character (Player, NPC) modding

Post by Frostyy »

Hello again Oleg! Hope everything is well.

I'm having an issue with some bump mapping, on a jacket I made.
It doens't show up ingame. It shows up in Zmodeler, OpenIV, but just not in GTAV.

Do you have any idea what could be causing this, and could you point me in the direction of a fix? :D

Here are some pictures of the issue: https://imgur.com/a/XzD4z8V


The best,
Frostyy
User avatar
Oleg
Site Admin
Posts: 14095
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

the game can override textures assigned onto ped components to create variations of outfit. I suppose your issue could be related to this.

alternatively, take any original game bump texture, rename it to your texture's name and put it into your mod instead of your own bump texture. Just to find out whether game likes your texture or not.
Frostyy
Posts: 37
Joined: Wed Nov 29, 2017 1:54 am

Re: GTA V character (Player, NPC) modding

Post by Frostyy »

Oleg wrote: Sun Feb 07, 2021 5:26 am the game can override textures assigned onto ped components to create variations of outfit. I suppose your issue could be related to this.

alternatively, take any original game bump texture, rename it to your texture's name and put it into your mod instead of your own bump texture. Just to find out whether game likes your texture or not.
Hey Oleg! As always, thanks for replying so quick :D

I forgot about this being an issue, I'll try and rename the comp to something else, and see if it works. I tried different bump textures, same issue. :(
User avatar
Oleg
Site Admin
Posts: 14095
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

I don't have a tutorial on this, but I guess you can find such tutorials on youtube.

It is advised to start with simple modifications/replacements on original game models.
the very basic steps are shown here:
https://www.youtube.com/watch?v=iNH2EN9B0ds
User avatar
Oleg
Site Admin
Posts: 14095
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

perfectly, you should load a rigged model into ZModeler (e.g., from .DAE file). Then you can toggle off "Setup mode" on a skeleton and adjust its bones position to match GTA rest pose. Moving skeleton should move the rigged mesh too. Once you are done, use Skeleton\Unbind tool to detach skeleton from a mesh and force the mesh to "remember" the new pose. From this moment on, you can bind the mesh to original game's skeleton and it should match the game's skeleton.

Other than that, you can adjust (rotate) arms and legs manually to match GTA rest pose.
User avatar
Oleg
Site Admin
Posts: 14095
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

the game will not respect DETAIL texture on your materials for peds and ped components. The texture the game will use is the one specified in metadata file for your ped. This is a technique to configure main texture for peds with no re-export of the model, so artists can assign a desired texture (or add a set of textures for variative appearance) after the model was exported.

In short, you should give texture the same name as it was on original model, you should put this texture into the same .ytd file that was used by original model. Alternatively, make appropriate changes in metadata file.
gtavvince
Posts: 2
Joined: Wed Sep 16, 2020 7:22 pm

Re: GTA V character (Player, NPC) modding

Post by gtavvince »

Hello, we are currently in the process of trying to get a hat to stop moving while standing still. Here is a example of what it is doing https://gyazo.com/d30fe472897ad73e0cd179caeec5c1dc
We have tried to solve it by doing this is wind simulation effect. paint per-vertex "Secondary color" to black. Enable Secondary color in mesh properties->mesh->vertices->format. To paint secondary color pick Surface->paint->[options: Secondary, RGB]->Color->[black color, Fill Selected ||assuming you've selected an object] with no results. Any help on how we could solve this would be appreciated thanks in advance!
User avatar
Oleg
Site Admin
Posts: 14095
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

you have missed some step in a guide you've quoted. the guide is correct and accurate, nothing is missing.
User avatar
Oleg
Site Admin
Posts: 14095
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

in general, it doesn't matter whether you rig a split model or a complete model. splitting after rigging could be a better choice if your model is OK on 64k vertices limit being merged.

mind, model split in game is generally for game textures limitation: game uses ONE texture on DETAIL slots of all materials on ONE component. So, if you need several textures for upper body, you should split it to body + accessories or something like that.
User avatar
BrynnaDaRosa
Posts: 34
Joined: Tue Dec 22, 2020 9:49 pm
Location: Massachusetts, USA

Re: GTA V character (Player, NPC) modding

Post by BrynnaDaRosa »

appledangerdash wrote: Thu Mar 04, 2021 10:29 am THANK YOU SOOOO MUCH

I've finally made my first model that doesnt look like an alien!!(pic1)

One issue though all my models work fine until they are on a bike and their shoulder blades start pointing out and I have no idea which bone/weight is causing this any idea
That might be a clavicle issue, or possibly something to do with arm roll? you should try to pose your model in different ways in any 3d modeling program (ie blender) to figure out what bone that weight is associated with
collinrut21
Posts: 0
Joined: Thu May 06, 2021 11:36 am

Re: GTA V character (Player, NPC) modding

Post by collinrut21 »

I have created a new account. this is the account i wanna use. My Platform id is Z3CAY-TQ
lld123
Posts: 17
Joined: Tue May 30, 2017 6:20 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by lld123 »

Hi Oleg and everyone. I'm new to Zmodeler 3, please tell me why each ped has 2-3 materials (as attached image) and how to apply all these materials to the ped. Thank you so much !
Attachments
ped_texture.jpg
User avatar
Oleg
Site Admin
Posts: 14095
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

GTA uses texture replacement scripts to make variations of ped outfit. In most of cases, ped model will use just one main texture (DETAIL texture in material properties) for a component (e.g. upper torso). But this component might require different styles of surfaces to be rendered - some might be glossy or matte fabrics, another surfaces might be chevron with transparency and so on. To utilize different in-game shaders (like "ped_alpha" for transparency and "ped" for bump-mapped material with textile sub-structure emulation) you create several materials for one component. You can assign material onto selected set of polygons by
1. selecting polygons
2. drag&dropping material in materials browser onto left-side branch entitled "Scene selection".
lld123
Posts: 17
Joined: Tue May 30, 2017 6:20 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by lld123 »

When I try to create a new material then drag and drop it into the Scene Selection, it has completely replaced the previous 2 materials. So how can I add a new material without replacing the old ones ?
Attachments
1.jpg
2.jpg
Post Reply