Weird weapon lighting in the game

GTA:V Modding with ZModeler3 discussion.
Post Reply
OrleansSeed
Posts: 4
Joined: Wed Jan 03, 2024 7:22 pm

Weird weapon lighting in the game

Post by OrleansSeed »

For some reason the weapons I modified have weird colors in the game, I think it has something to do with the env texture. The last time I made mods was in November and everything was working normally. Please help me fix or identify the problem if possible.
Attachments
20240103204807_1.jpg
20240103204815_1.jpg
20240104004515_1.jpg
User avatar
Oleg
Site Admin
Posts: 14902
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Weird weapon lighting in the game

Post by Oleg »

attach a cube/box geometry object to main weapon part and assign the same material onto this cube; then test in game and/or record a video on how this cube is shaded in game.

Most of shading issues are caused by normal-map texture (mismatching the geometry or geometry having wrong normals/tangents and failing to use normal-texture properly in computations).
OrleansSeed
Posts: 4
Joined: Wed Jan 03, 2024 7:22 pm

Re: Weird weapon lighting in the game

Post by OrleansSeed »

Oleg wrote: Thu Jan 04, 2024 1:04 am attach a cube/box geometry object to main weapon part and assign the same material onto this cube; then test in game and/or record a video on how this cube is shaded in game.

Most of shading issues are caused by normal-map texture (mismatching the geometry or geometry having wrong normals/tangents and failing to use normal-texture properly in computations).
I won't be able to send the video right now, but it seems that the cube is not affected like the weapon, it really seems to be a problem with the normal map texture and I think it could be something to do with zmodeler.
I tried redoing this weapon and making other weapons to try to solve the problem, but it continues, and I also tried reinstalling zmodeler, but nothing worked
Attachments
Here is a weapon I made in November 2023
Here is a weapon I made in November 2023
20240104180924_1.jpg
And this is the one I made yesterday
And this is the one I made yesterday
20240104180946_1.jpg
OrleansSeed
Posts: 4
Joined: Wed Jan 03, 2024 7:22 pm

Re: Weird weapon lighting in the game

Post by OrleansSeed »

Oleg wrote: Thu Jan 04, 2024 1:04 am attach a cube/box geometry object to main weapon part and assign the same material onto this cube; then test in game and/or record a video on how this cube is shaded in game.

Most of shading issues are caused by normal-map texture (mismatching the geometry or geometry having wrong normals/tangents and failing to use normal-texture properly in computations).
And also, the color on the zmodeler is much darker than other weapons I've made. I don't know if that would have anything to do with it.
Attachments
Screenshot_4.png
Screenshot_5.png
OrleansSeed
Posts: 4
Joined: Wed Jan 03, 2024 7:22 pm

Re: Weird weapon lighting in the game

Post by OrleansSeed »

Oleg wrote: Thu Jan 04, 2024 1:04 am attach a cube/box geometry object to main weapon part and assign the same material onto this cube; then test in game and/or record a video on how this cube is shaded in game.

Most of shading issues are caused by normal-map texture (mismatching the geometry or geometry having wrong normals/tangents and failing to use normal-texture properly in computations).
I found out that the problem is with the 3d model, and is not caused by zmodeler, it is caused by 3dsmax which is flipping the normal maps because of some bug.
User avatar
Oleg
Site Admin
Posts: 14902
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Weird weapon lighting in the game

Post by Oleg »

Does Surface\Normals\Calculate tool applied to the geometry in ZModeler make any changes?
beifeng111
Posts: 1
Joined: Wed Feb 05, 2025 9:30 pm

Re: Weird weapon lighting in the game

Post by beifeng111 »

I've noticed some odd weapon lighting effects too, especially in darker areas where reflections seem off. It might be a shader issue or something with how the game handles dynamic lighting. Have you tried adjusting the graphics settings or updating your drivers? Sometimes mods or custom shaders can help tweak these effects. If you're looking for alternate versions of the game to test on different settings, you might find this site https://heyapks.com/ useful. Let me know if you find a fix!
Post Reply