Jump to content
KokaKolaA3

Building Lights not working properly

Recommended Posts

Hey,

I'm currently working on a small building, so far it's working quite good. The only problem that i have is, that the lights don't work excatly how I want them to work.

This is what the memory points looking like:

 

W8Nj8O8.png

 

 

This is what the light itself looks like in o2:

 

 

hN7oc4P.png

 

Here is the config:

 

aggregateReflectors[] =
        {
            {"Light_1", "Light_2", "Light_3", "Light_4", "Light_5", "Light_6"}
        };

        class Reflectors
        {
            class Light_1
            {
                color[]                = {2500,4000,6000};
                ambient[]            = {2.5,4,6};
                intensity            = 1;
                size                = 1;                    /// size of the light point seen from distance
                innerAngle            = 100;                    /// angle of full light
                outerAngle            = 165;                    /// angle of some light
                coneFadeCoef        = 4;                    /// attenuation of light between the above angles

                position            = "lamp_1_pos";        /// memory point for start of the light and flare
                direction            = "lamp_1_dir";        /// memory point for the light direction
                hitpoint            = "lamp_1_hitpoint";    /// point(s) in hitpoint lod for the light (hitPoints are created by engine)
                selection            = "lamp_1_hide";        /// selection for artificial glow around the bulb, not much used any more

                useFlare            = true;
                flareSize            = 1;
                flareMaxDistance    = 15;

                class Attenuation
                {
                    start            = 0;
                    constant        = 0;
                    linear            = 0;
                    quadratic        = 0.3;

                    hardLimitStart    = 50;
                    hardLimitEnd    = 65;
                };
            };
            class Light_2: Light_1
            {
                position            = "lamp_2_pos";
                direction            = "lamp_2_dir";
                hitpoint            = "lamp_2_hitpoint";
                selection            = "lamp_2_hide";
            };
            class Light_3: Light_1
            {
                position            = "lamp_3_pos";
                direction            = "lamp_3_dir";
                hitpoint            = "lamp_3_hitpoint";
                selection            = "lamp_3_hide";
            };
            
            class Light_4: Light_1
            {
                position            = "lamp_4_pos";
                direction            = "lamp_4_dir";
                hitpoint            = "lamp_4_hitpoint";
                selection            = "lamp_4_hide";
            };
            
            class Light_5: Light_1
            {
                position            = "lamp_5_pos";
                direction            = "lamp_5_dir";
                hitpoint            = "lamp_5_hitpoint";
                selection            = "lamp_5_hide";
            };
            
            class Light_6: Light_1
            {
                position            = "lamp_6_pos";
                direction            = "lamp_6_dir";
                hitpoint            = "lamp_6_hitpoint";
                selection            = "lamp_6_hide";
            };
        };

 

 

As you can see on the images below, there is no flare on the light position, and the lights goes everywhere but not where I want it to.

 

Ingame:

 

hxBWpM9.jpg

 

xnyFwYR.jpg

 

kgJrv7Y.jpg

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×