Blood texture not working on custom ped models

GTA:V Modding with ZModeler3 discussion.

Moderator: madga182

Blood texture not working on custom ped models

Postby JotaPXModz » Sun Jul 17, 2016 7:51 am

i converted some custom ped models into GTA V, but when i get shot not appears any blood texture
JotaPXModz
 
Posts: 30
Joined: Sun Jun 19, 2016 10:14 am

Re: Blood texture not working on custom ped models

Postby Oleg » Sun Jul 17, 2016 8:50 am

I suspect your mesh requires more uv-channels mapped than you have. also, make sure you use ped_*** shaders for your model, as other shaders will not show blood effect.
User avatar
Oleg
Site Admin
 
Posts: 7398
Joined: Fri Feb 06, 2004 3:54 am

Re: Blood texture not working on custom ped models

Postby JotaPXModz » Sun Jul 17, 2016 11:41 am

im using ped adapt, about uv channels, you mean i have to change UV Channel value on Properties?
JotaPXModz
 
Posts: 30
Joined: Sun Jun 19, 2016 10:14 am

Re: Blood texture not working on custom ped models

Postby Oleg » Mon Jul 18, 2016 1:19 am

set uv channels to 2; then copy uv #1 to uv #2 (edit uv -> edit #2, generate new; copy from: #1; ok).
User avatar
Oleg
Site Admin
 
Posts: 7398
Joined: Fri Feb 06, 2004 3:54 am

Re: Blood texture not working on custom ped models

Postby JotaPXModz » Mon Jul 18, 2016 6:27 am

Almost working correctly, i did what you said, still not blood texture, only those black/white dots

Image
Image
Image
JotaPXModz
 
Posts: 30
Joined: Sun Jun 19, 2016 10:14 am

Re: Blood texture not working on custom ped models

Postby Oleg » Mon Jul 18, 2016 9:48 am

The game seems to use the "square" of UV#2 on a model to determine the kind of bullet-respose effect. As entire upper torso is one object and uses the same material, the game needs to determine whether it should draw a blood effect like on a dress, or blood effect like on a body, or draw a bulletproof effect like on a squad equipment. etc.

I guess UV#2 layout square is for that particular purpose.

Take a look at original Franklin upper_00 torso mapping layout on UV#2:

gta5_bullet_response_00.jpg


You can see skirt UV layout in shifted to original (U,V) texture square to U+1, V-1;

I guess all layout squares could have their own meaning in game, you can make a test with big box mapped onto different squares and write down your observations of effects.

gta5_bullet_response_01.jpg


Default UV#1 copied to UV#2 is placed in U0,V0 square and gives an effect as you've shown (it looks like armored police squad equipment reaction to me).
User avatar
Oleg
Site Admin
 
Posts: 7398
Joined: Fri Feb 06, 2004 3:54 am

Re: Blood texture not working on custom ped models

Postby JotaPXModz » Mon Jul 18, 2016 10:48 am

Purple Square is: Blood on clothing effect,
Blue Square is : Blood on Skin (Not sure yet)
Green Square is: Armour(Bulletproof) Bullet Holes effect

Here is, custom Jeans model

Image

Will update here to see what happens to the other squares, i think this can help other modders

Fuck GIMS EVO, Zmodeler 3 > all, haha :mrgreen:

Thanks for your support Oleg :)
JotaPXModz
 
Posts: 30
Joined: Sun Jun 19, 2016 10:14 am

Re: Blood texture not working on custom ped models

Postby JotaPXModz » Mon Jul 18, 2016 11:41 am

one thing i saw, if you use the uppr and lowr in the same square, blood effect will not work

i was playing with my custom shirt and swapped to another, and the bullet holes has transfered to another clothing, and i swap back the blood has started working again, really weird, still trying testing the squares here

Image
JotaPXModz
 
Posts: 30
Joined: Sun Jun 19, 2016 10:14 am

Re: Blood texture not working on custom ped models

Postby Oleg » Mon Jul 18, 2016 12:00 pm

Original lower_000 model uses the following layout pattern:

gta5_bullet_response_02.jpg


I guess, horizontal square offset is a "type" of reaction: default/0 = bullet hole; u1 = blood;
vertical layout is probably a different hit-areas (left arm, right arm, left leg, right leg, torso, etc). As you can see, the very upper set of polygons on pants is separated from the rest of the model to be laid onto U1,V-1 square (where torso shirt is laid too), meaning a "torso hit-area". the rest of pants is laid in the same square as the legs themselves;

Edit:

left leg: U1,V-9, right leg: U1,V-11;
left foot: U1, V-9; right foot: U1, V-11;

left hand: U1, V-5; right hand: U1, V-7;
head and neck: U1, V-3;
jbib/chest (upper torso): U1, V-1;
User avatar
Oleg
Site Admin
 
Posts: 7398
Joined: Fri Feb 06, 2004 3:54 am

Re: Blood texture not working on custom ped models

Postby JotaPXModz » Mon Jul 18, 2016 12:23 pm

uv from uppr_004

Image
JotaPXModz
 
Posts: 30
Joined: Sun Jun 19, 2016 10:14 am

Re: Blood texture not working on custom ped models

Postby JotaPXModz » Mon Jul 18, 2016 12:58 pm

i can understand now
JotaPXModz
 
Posts: 30
Joined: Sun Jun 19, 2016 10:14 am


Return to Grand Theft Auto V

Who is online

Users browsing this forum: No registered users and 2 guests