Cant make some part have glowing

GTA:V Modding with ZModeler3 discussion.
Post Reply
dungnguyen95
Posts: 30
Joined: Sat Nov 26, 2022 2:51 am

Cant make some part have glowing

Post by dungnguyen95 »

I'm trying to make a glowing gun with full part is glowing but somehow I can't make some part have emessive like flashlight and grip, I have changed texture to emessive and emmesivestrong but it's not solve the problem. Please help me fix this issue
https://i.imgur.com/ZAlrvMt.png
User avatar
Oleg
Site Admin
Posts: 14662
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Cant make some part have glowing

Post by Oleg »

emissive shader might have an emissive strength control components in code that refer to per-vertex data or per-texture data. May be texture's alpha channel is a strength of a emissive, or may be per-vertex red/green or blue is a strength (or dimmer). make several cubes next to the weapon and attach them to the weapon. then paint them per-vertex to Cyan, another to Magenta and the third one to Yellow. Then assign the same material as the rest of the weapon and test in game. I think some (or one) of them will glow stronger than another. then make a consideration based on result which color components give stronger glow.
dungnguyen95
Posts: 30
Joined: Sat Nov 26, 2022 2:51 am

Re: Cant make some part have glowing

Post by dungnguyen95 »

Oleg wrote: Thu Nov 28, 2024 12:06 am emissive shader might have an emissive strength control components in code that refer to per-vertex data or per-texture data. May be texture's alpha channel is a strength of a emissive, or may be per-vertex red/green or blue is a strength (or dimmer). make several cubes next to the weapon and attach them to the weapon. then paint them per-vertex to Cyan, another to Magenta and the third one to Yellow. Then assign the same material as the rest of the weapon and test in game. I think some (or one) of them will glow stronger than another. then make a consideration based on result which color components give stronger glow.
Yes I tried the same material with the flashlight to some cube and attached to weapon, the cube still glowing and the flashlight don't. This happend same with the supressor and I have to download an addons supressor and have make it glowing normal. :cry:
User avatar
Oleg
Site Admin
Posts: 14662
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Cant make some part have glowing

Post by Oleg »

have I got this right - you create a cube, assign the same material and attach it to your model and this cube glows fine in game? then solve the problem with your geometry object, as the material/shader/textures setup is correct.
dungnguyen95
Posts: 30
Joined: Sat Nov 26, 2022 2:51 am

Re: Cant make some part have glowing

Post by dungnguyen95 »

Oleg wrote: Thu Nov 28, 2024 2:43 am have I got this right - you create a cube, assign the same material and attach it to your model and this cube glows fine in game? then solve the problem with your geometry object, as the material/shader/textures setup is correct.
The cube is glowing fine but the flashlight don't even tho using the same material
User avatar
Oleg
Site Admin
Posts: 14662
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Cant make some part have glowing

Post by Oleg »

read per-vertex color from cube and paint this per-vertex color onto problematic geometry vertices. note, the game uses red per-vertex color component to dim the mesh (fake AO shadows), so if you paint mesh per-vertex color to white, the model might be too bright in day-time.
dungnguyen95
Posts: 30
Joined: Sat Nov 26, 2022 2:51 am

Re: Cant make some part have glowing

Post by dungnguyen95 »

Oleg wrote: Thu Nov 28, 2024 3:20 am read per-vertex color from cube and paint this per-vertex color onto problematic geometry vertices. note, the game uses red per-vertex color component to dim the mesh (fake AO shadows), so if you paint mesh per-vertex color to white, the model might be too bright in day-time.
I dont know where is that but here is my material setting, full body of my gun are glowing very well but the grip and the body of the flashlight are not :(

https://i.imgur.com/vl7dHR4.png

Here is the part are glowing: https://i.imgur.com/lojAcyL.png
This is the part not glowing even tho using the same material as the above: https://i.imgur.com/v4ZMHE7.png
User avatar
Oleg
Site Admin
Posts: 14662
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Cant make some part have glowing

Post by Oleg »

no.
Surface\Paint\Color tool is the one I'm talking about. this tool reads/paints per-vertex color on a geometry object.
Post Reply