• Dear visitors,

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

    Team ACM.

SOLVED code CSP : transparent object declaration

jerome30

New Member
Hi All


I would like to find the right code to declare an object (a window) in extension/ext_config.ini

this code works perfect ... but my object is still opaque and it is not declared transparent.

In Kseditor,
we have 2 lines which are not present in my code below, but which I cannot integrate, any idea ? ;)

BlendMode = eAlphaBlend
&
IsTransparent = True

Code:
[SHADER_REPLACEMENT_...]
ACTIVE = 1   
MATERIALS = 01 - Default
SHADER = ksPerPixelReflection
KEY_0 = ksAmbient
VALUE_0 = 0.1
KEY_1 = ksDiffuse
VALUE_1 = 0.1
KEY_2 = ksSpecular
VALUE_2 = 0.1
KEY_3 = ksSpecularEXP
VALUE_3 = 20
KEY_4 = ksmissive
VALUE_4 = 0 0 0
KEY_5 = ksAlphaRef
VALUE_5 = 0
KEY_6 = fresnelC
VALUE_6 = 1
KEY_7 = fresnelEXP
VALUE_7 = -1
KEY_8 = isAdditive
VALUE_8 = 1
KEY_9 = fresnelMaxLevel
VALUE_9 = 0.5
 

fughettaboutit

aka leBluem
old-school vanilla AC way: settings.json in trackfolder with this content:
(example track using one: Endless Floor)
Code:
{
    "materials": {
        "01 - Default": {
            "alphaBlendmode": "AlphaBlend",
            "alphaTested": false,
            "depthMode": "DepthNormal",
            "properties": {
                "ksAlphaRef": {
                    "valueA": 0
                }
                // ...
            },
            "shaderName": "ksPerPixelReflection"
        }
    },
    "nodes": {
        "your_mesh": {
            "castShadows": true,
            "isRenderable": true,
            "isTransparent": true,
            "isVisible": true,
            "layer": 0,
            "lodIn": 400,
            "lodOut": 0
        }
    }
}
 
Top