Hello all modders !
First post here, I'm new at modding but worked recently on some updates for Rouen-les Essarts (Mad Brain) posted here at OT: https://www.overtake.gg/downloads/rouen-les-essarts-update-madbrain-version.79478/
Right now I would like to add some night lights. I found the ext-config.ini from @fughettaboutit (thanks ! and if he agrees, I will convert them for the 72-94 layouts (which have different meshes and materials name)
Anyway, while adding pole and spot lights in the different turns, I encountered an issue that I'm not able to solve myself.
I was able to produce the light series using the trick of creating a blender cube that I fill with a transparent texture. But when it comes to glowing, I'm not satisfied by the result:
With transparent texture, I obtain this when glowing at night :

where I would like that:

that I can obtain if I change the BLEND_MODE to OPAQUE. However, if I do this, the object become visible during the day.
My code in the ext-config.ini is :
[MESH_ADJUSTMENT_...]
ACTIVE=1
MESHES=OBJ9999?
IS_RENDERABLE=1
IS_VISIBLE=1
IS_TRANSPARENT=0
[SHADER_REPLACEMENT_...]
MATERIALS = bulb
SHADER = ksPerPixelAT
PROP_... = ksAlphaRef, 1
BLEND_MODE=ALPHA_TEST
[MATERIAL_ADJUSTMENT_...]
ACTIVE=1
MATERIALS = bulb
DESCRIPTION=lights
KEY_0=ksEmissive
VALUE_0=255,173,76,1
VALUE_0_OFF=ORIGINAL
KEY_1=ksAlphaRef
VALUE_1=-193
VALUE_1_OFF=ORIGINAL
CONDITION=NIGHT_SMOOTH
The screenshots are obtained with a texture that is already in the track (marshglass.dds)
If I change the ksAlphaRef in the shader replacement, nothing change
If I change the BLEND_MODE to OPAQUE, then it works but the texture become visible during day
If I change the texture to a full transparent png in blender and in the fbx.ini, it is not visible during the day, but I'm not able to make it glow
At some point , I was able to use the GoogleMap.png to make it transparent in some way and still able to shine but can't retrieve what I did !
I suspect I'm messing something with the alpha channel of the resource but I'm in no way an expert in this area so I'm lost, any help would be much appreciated !
First post here, I'm new at modding but worked recently on some updates for Rouen-les Essarts (Mad Brain) posted here at OT: https://www.overtake.gg/downloads/rouen-les-essarts-update-madbrain-version.79478/
Right now I would like to add some night lights. I found the ext-config.ini from @fughettaboutit (thanks ! and if he agrees, I will convert them for the 72-94 layouts (which have different meshes and materials name)
Anyway, while adding pole and spot lights in the different turns, I encountered an issue that I'm not able to solve myself.
I was able to produce the light series using the trick of creating a blender cube that I fill with a transparent texture. But when it comes to glowing, I'm not satisfied by the result:
With transparent texture, I obtain this when glowing at night :

where I would like that:

that I can obtain if I change the BLEND_MODE to OPAQUE. However, if I do this, the object become visible during the day.
My code in the ext-config.ini is :
[MESH_ADJUSTMENT_...]
ACTIVE=1
MESHES=OBJ9999?
IS_RENDERABLE=1
IS_VISIBLE=1
IS_TRANSPARENT=0
[SHADER_REPLACEMENT_...]
MATERIALS = bulb
SHADER = ksPerPixelAT
PROP_... = ksAlphaRef, 1
BLEND_MODE=ALPHA_TEST
[MATERIAL_ADJUSTMENT_...]
ACTIVE=1
MATERIALS = bulb
DESCRIPTION=lights
KEY_0=ksEmissive
VALUE_0=255,173,76,1
VALUE_0_OFF=ORIGINAL
KEY_1=ksAlphaRef
VALUE_1=-193
VALUE_1_OFF=ORIGINAL
CONDITION=NIGHT_SMOOTH
The screenshots are obtained with a texture that is already in the track (marshglass.dds)
If I change the ksAlphaRef in the shader replacement, nothing change
If I change the BLEND_MODE to OPAQUE, then it works but the texture become visible during day
If I change the texture to a full transparent png in blender and in the fbx.ini, it is not visible during the day, but I'm not able to make it glow
At some point , I was able to use the GoogleMap.png to make it transparent in some way and still able to shine but can't retrieve what I did !
I suspect I'm messing something with the alpha channel of the resource but I'm in no way an expert in this area so I'm lost, any help would be much appreciated !
Last edited: