• Dear visitors,

    The email issue has been finally solved.
    Thank you for your patience and happy browsing.

    Team ACM.

Track Lights Not Working

Swift_R16

New Member
I'm trying to light up a route that has nicely modeled street lights. Yet, when I try to light them up using the Light Series Script, it doesnt work. the name of the object is lighta_d.dds
I'm not sure if the dds part is messing with it, or is this an issue I can resolve through 3D software such as Blender?
I can still light them up using an old way, yet, would lead to a lot of script in the exstenion ini.
Any help would be great. Attached is a picture of what I'm working with.
 

Attachments

fughettaboutit

aka leBluem
make a new texture that only has that part of the lamp, that should glow, anything else black

put "new_texture.dds" beside "extension\ext_config.ini"

use this code in "ext_config.ini", replace "your_material_name" with yours...

Code:
[INCLUDE]
INCLUDE=common/conditions.ini, common/custom_emissive.ini

; adjust shader, texture and some props
[SHADER_REPLACEMENT_...]
MATERIALS = your_material_name
SHADER = ksPerPixelMultiMap_emissive
FILL_MISSING_TEXTURES = 1
RESOURCE_4 = txEmissive
RESOURCE_FILE_4 = new_texture.dds
PROP_... = emSkipDiffuseMap, 1

; light glow
[MATERIAL_ADJUSTMENT_...]
MATERIALS = your_material_name
KEY_... = ksEmissive
; color reused below
VALUE_... = 255,219,150, 0.4 ; last value: multiplier
VALUE_OFF_... = 0
KEY_...=ksAlphaRef
VALUE_...=-193  ; boost in certainn camera angles
VALUE_OFF_...=0
CONDITION = NIGHT_SHARP

; casted light
[LIGHT_SERIES_...]
MATERIALS = your_material_name
OFFSET=0,0,0
DIRECTION=0,-1,0
SPOT=0   ; 0 for all around
SPOT_SHARPNESS=0.5
RANGE=20
RANGE_GRADIENT_OFFSET=0.1
FADE_AT=500
FADE_SMOOTH=30
DIFFUSE_CONCENTRATION=0.75
CLUSTER_THRESHOLD=15
; same color as for glow above, but dimmer
COLOR = 255,219,150, 0.05
COLOR_OFF=0
CONDITION = NIGHT_SHARP
 
Last edited:

Swift_R16

New Member
Ok, I see what you mean, thankyou. Will keep that in mind on future projects. Before I went that route I looked over my script one more time and noticed I had condition Night_Smooth set for it, which somehow cancels the light on some tracks, I don't know why. The series works now, although, ideally I'd like the light bulb to be a separate object to light up, instead of tapping each one with its own light, though these are old wips of others tracks.
 

Swift_R16

New Member
Ah, thankyou, that would make sense, I'm also trying to create a somewhat universal basic config for tracks. Seems like every track has a unique or sloppy looking one. I've added a few things to a copy of the one in the generic folder that works for the most part. Learning how to mod AC has been fun and challenging so far, learned a lot of cool things.
 
Top