GTA V character (Player, NPC) modding

GTA:V Modding with ZModeler3 discussion.
User avatar
Oleg
Site Admin
Posts: 14045
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

bones affection on head model is probably inaccurate, or bones location does not match the replaced head perfectly. you should check how facial bones affect original head to see whether your replaced model reproduce the same in ZModeler. it is very hard to get a good bones weight on a head model by copying weights, the source and destination model should match nearly perfectly to retain all facial animations correctly.

another thing is a head material configuration, it can use facial expression bump/displacement textures (at least player model does this).
Retrocop
Posts: 13
Joined: Wed Jan 03, 2018 9:58 am

Re: GTA V character (Player, NPC) modding

Post by Retrocop »

Oleg wrote:bones affection on head model is probably inaccurate, or bones location does not match the replaced head perfectly. you should check how facial bones affect original head to see whether your replaced model reproduce the same in ZModeler. it is very hard to get a good bones weight on a head model by copying weights, the source and destination model should match nearly perfectly to retain all facial animations correctly.

another thing is a head material configuration, it can use facial expression bump/displacement textures (at least player model does this).
I realized that it would not be easy and went the other way. Faces really individual, yes... But the rest of the skeleton should be the same. So i just import a_m_y_yoga_01.yft and a_m_y_yoga_01.ydd as basic instead s_m_y_cop_01, then import edited s_m_y_cop_01 and replace clothes, don't touching heads. Then i replace in game client s_m_y_cop_01.yft by a_m_y_yoga_01.yft and as i see i haven't any bugs now.
Image
Also, is there way to made hat spawn always?
Frostyy
Posts: 37
Joined: Wed Nov 29, 2017 1:54 am

Re: GTA V character (Player, NPC) modding

Post by Frostyy »

Retrocop wrote:Also, is there way to made hat spawn always?
Just make them as a separate component maybe?
Frostyy
Posts: 37
Joined: Wed Nov 29, 2017 1:54 am

Re: GTA V character (Player, NPC) modding

Post by Frostyy »

Isn't there a way to get around this? So that the mesh doesnt clip when zooming all the way in :))
Attachments
Screenshot_1.png
User avatar
Oleg
Site Admin
Posts: 14045
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

alt+shift+right mouse button, move mouse up/down to change "camera lens".
Frostyy
Posts: 37
Joined: Wed Nov 29, 2017 1:54 am

Re: GTA V character (Player, NPC) modding

Post by Frostyy »

I tried that earlier but no luck, now its working tho :)) Maybe a restart was just needed :D
Frostyy
Posts: 37
Joined: Wed Nov 29, 2017 1:54 am

Re: GTA V character (Player, NPC) modding

Post by Frostyy »

Any idea whats causing this?
Attachments
Screenshot_1.png
Screenshot_1.png (115.58 KiB) Viewed 12851 times
User avatar
Oleg
Site Admin
Posts: 14045
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

causing what?
Frostyy
Posts: 37
Joined: Wed Nov 29, 2017 1:54 am

Re: GTA V character (Player, NPC) modding

Post by Frostyy »

It's like there is a semi invisible layer on top of the hat :o
User avatar
Oleg
Site Admin
Posts: 14045
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

it's barely possible to say something given just a screenshot. how does it behave when player turns around? is it floating depending on a light position?
Frostyy
Posts: 37
Joined: Wed Nov 29, 2017 1:54 am

Re: GTA V character (Player, NPC) modding

Post by Frostyy »

Just has that constant extra semi transparent part :/ I'll try and get some more screenshot for you :D
Frostyy
Posts: 37
Joined: Wed Nov 29, 2017 1:54 am

Re: GTA V character (Player, NPC) modding

Post by Frostyy »

Nvm works now :)) Just had to mess with the LODs, like I thought :D
lawdy
Posts: 29
Joined: Wed Mar 08, 2017 11:19 am

Re: GTA V character (Player, NPC) modding

Post by lawdy »

Is there an estimate of a maximum amount of polygons a ped should make up? I'm making a pretty detailed and heavy ped and I'm worried it's going to affect people's performance.
fomenkox
Posts: 27
Joined: Sat Mar 10, 2018 10:29 am

Re: GTA V character (Player, NPC) modding

Post by fomenkox »

Hello! For 24 hours I'm studying the program in terms of editing the character in GTA 5. I edited it as necessary, I do the export and then I check in OpenIV file .ydd - everything is there except the head_000_r and head_001_r ... What am I doing wrong?
P.S. now i have trial licence...
User avatar
Oleg
Site Admin
Posts: 14045
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

the first thing to go is to import model back into ZModeler and inspect the hierarchy and/or availability of .mesh object in a groups/branches you've mentioned.

Initially, the branch "head_000_r" will be exported, if it has ".mesh" geometry object inside and this object is bind to a skeleton. Skeleton could be either inside of any branch/group of "current ydd file's hierarchy", or be a ".skel" object in ".global" branch. Using ".global" branch is my preferred choice as it allows messing around with multiple .ydd files at once (e.g. when editing player components), or when importing/exporting/reimporting ped ydd files.

in any case you should clarify, what is meant by "everything is there except the head_000_r" - branches are missing or nothing shows up in them? does it look the same in ZMod after reimport?
fomenkox
Posts: 27
Joined: Sat Mar 10, 2018 10:29 am

Re: GTA V character (Player, NPC) modding

Post by fomenkox »

Sorry, I'm from Russia and have bad English, but i have screenshot.
Attachments
2018-03-11_00-35-54.png
fomenkox
Posts: 27
Joined: Sat Mar 10, 2018 10:29 am

Re: GTA V character (Player, NPC) modding

Post by fomenkox »

Oleg wrote:the first thing to go is to import model back into ZModeler and inspect the hierarchy and/or availability of .mesh object in a groups/branches you've mentioned.

Initially, the branch "head_000_r" will be exported, if it has ".mesh" geometry object inside and this object is bind to a skeleton. Skeleton could be either inside of any branch/group of "current ydd file's hierarchy", or be a ".skel" object in ".global" branch. Using ".global" branch is my preferred choice as it allows messing around with multiple .ydd files at once (e.g. when editing player components), or when importing/exporting/reimporting ped ydd files.

in any case you should clarify, what is meant by "everything is there except the head_000_r" - branches are missing or nothing shows up in them? does it look the same in ZMod after reimport?
I don't have head in my .ydd file
Attachments
2018-03-11_00-40-11.png
User avatar
Oleg
Site Admin
Posts: 14045
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

Да можно по-русски тут писать, не проблема. В логе программы я вижу, что она выгрузила 8 компонентов, в OpenIV их тоже 8, просто часть из них не отображается, как я понимаю. Тут первое, что надо бы сделать, это импортировать этот .ydd файл (можно без .yft и без переименования ветки в .global) обратно в ZModeler. При этом важно посмотреть, что же на самом деле в ветках head_000 в этом файле. также следует обратить внимание, есть ли в ветках head_000_ скелет (.skel) - там по идее должен быть полный скелет со всеми костями (в других ветках допускается усеченный скелет, с костями которые нужны для геометрии, а вот в head_* должен полный скелет выгружаться).

собственно вариантов два: геометрия головы отсутсвует совсем (нет .mesh объекта), или объект есть, но в с ним непорядок. посмотри на его составляющие, возможно правильная геометрия оказалась на L1 лоде, а не на L0.

если геометрии нет, надо разбираться со сценой, из которой была выгрузка - первое, посмотреть лог, может там какая подсказка есть чуть выше.. второе - удалить все ветки, оставить только одну head_000 и попробовать выгрузить её. еще можно попробовать накинуть на геометрию head_000->.mesh временно какой-то другой материал (может, материал не конвертируется по какой-то причине).

скорее всего, лог программы должен что-то рапортовать, если экспортеру что-то не понравилось.
fomenkox
Posts: 27
Joined: Sat Mar 10, 2018 10:29 am

Re: GTA V character (Player, NPC) modding

Post by fomenkox »

Уфф, спасибо большое, по-русски легче) Да, я уже целый день играюсь с импортом/экспортом, уже что только не делал) Мне всего-то у этого перса-девушки нужно было живот чуть-чуть увеличить, типа сделать ее беременной) С редактированием проблем вообще нет, кучу иностранных роликов на ютубе пересмотрел несколько раз. А вот с экспортом не получается, т.е. 2 строки в Опен4 есть Head, но голова напрочь не хочет отображаться при рендере... Сейчас буду пробовать сделать то, что Вы написали)
fomenkox
Posts: 27
Joined: Sat Mar 10, 2018 10:29 am

Re: GTA V character (Player, NPC) modding

Post by fomenkox »

Попробовал обратно импортировать полученный файл .ydd и вот что я получил. Ошибки только по поводу отсутствия текстурок. А вот в иерархии в блоках Head очень много данных по скелетону.
Attachments
2018-03-11_01-32-31.png
fomenkox
Posts: 27
Joined: Sat Mar 10, 2018 10:29 am

Re: GTA V character (Player, NPC) modding

Post by fomenkox »

Oleg wrote: собственно вариантов два: геометрия головы отсутсвует совсем (нет .mesh объекта), или объект есть, но в с ним непорядок. посмотри на его составляющие, возможно правильная геометрия оказалась на L1 лоде, а не на L0.
вот этот момент не понял как сделать...
Attachments
2018-03-11_01-47-58.png
fomenkox
Posts: 27
Joined: Sat Mar 10, 2018 10:29 am

Re: GTA V character (Player, NPC) modding

Post by fomenkox »

А вот как выглядит объект head_000_r без .mesh
Attachments
2018-03-11_01-51-58.png
User avatar
Oleg
Site Admin
Posts: 14045
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: GTA V character (Player, NPC) modding

Post by Oleg »

в целом, всё выглядит правильно.

посмотри в OpenIV детализацию подробности про геометрию (в идеале, сделай экспорт где только head_000 и в Open посмотри раздел "More information" - там будут данный по шейдерам и скольно на каждый приходится полигонов.
fomenkox
Posts: 27
Joined: Sat Mar 10, 2018 10:29 am

Re: GTA V character (Player, NPC) modding

Post by fomenkox »

Oleg wrote:в целом, всё выглядит правильно.

посмотри в OpenIV детализацию подробности про геометрию (в идеале, сделай экспорт где только head_000 и в Open посмотри раздел "More information" - там будут данный по шейдерам и скольно на каждый приходится полигонов.

Вот сделал, снова голова не отображается.
Attachments
2018-03-11_02-35-23.png
fomenkox
Posts: 27
Joined: Sat Mar 10, 2018 10:29 am

Re: GTA V character (Player, NPC) modding

Post by fomenkox »

Вот продолжение
Attachments
2018-03-11_02-37-08.png
Post Reply