Menu

#2520 Clustered shaderspot lighting randomly changing color

2020.4
Done
None
Low
2024-01-17
2021-01-13
Wayne Bragg
No

Clustered shader spot light randomly changes color from an assigned "white" value to red or green. It appears to be related to the user view position as I can get it to bug out and change color by moving the users view position when close to the sweet spot for seeing this bug. I also noticed when causing it to bug slow enough you can see the edge of the color change is a straight line or box. Textures, nor ortho layer nor shaders seem to influence it in any way, it is more related to view angle.

    <light>
        <name>ProceduralSpotLight</name>
        <type>spot</type>
        <position>
            <x-m> -7.78415 </x-m>
            <y-m>  0.00000 </y-m>
            <z-m> -3.21645 </z-m>
        </position>
        <direction>
            <lookat-x-m>  -8</lookat-x-m>
            <lookat-y-m>   0</lookat-y-m>
            <lookat-z-m>-700</lookat-z-m>
        </direction>
        <ambient>
            <r>0.95</r>
            <g>0.95</g>
            <b>0.95</b>
            <a>1</a>
        </ambient>
        <diffuse>
            <r>0.95</r>
            <g>0.95</g>
            <b>0.95</b>
            <a>1</a>
        </diffuse>
        <specular>
            <r>0.95</r>
            <g>0.95</g>
            <b>0.95</b>
            <a>1</a>
        </specular>
        <attenuation>
            <c>1.0</c>
            <l>0.0014</l>
            <q>0.000007</q>
        </attenuation>
        <spot-exponent>100</spot-exponent>
        <spot-cutoff>20</spot-cutoff>
        <range-m>1000</range-m>
        <debug-color>
            <r>1</r>
            <g>1</g>
            <b>1</b>
            <a>1</a>
        </debug-color>
    </light>

Discussion

  • Wayne Bragg

    Wayne Bragg - 2021-01-13
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,4 @@
    -Clustered shader spot light randomly changes color from an assigned &#34;white&#34; value to re or green. It appears to be related to the user view position as I can get it to bug out and change color by moving the users view position when close to the sweet spot for seeing this bug. I also noticed when causing it to bug slow enough you can see the edge of the color change is a straight line or box. Textures, nor ortho layer nor shaders seem to influence it in any way, it is more related to view angle.
    +Clustered shader spot light randomly changes color from an assigned &#34;white&#34; value to red or green. It appears to be related to the user view position as I can get it to bug out and change color by moving the users view position when close to the sweet spot for seeing this bug. I also noticed when causing it to bug slow enough you can see the edge of the color change is a straight line or box. Textures, nor ortho layer nor shaders seem to influence it in any way, it is more related to view angle.
    
     ~~~
        &lt;light&gt;
    
     
  • Fernando García Liñán

    Thanks for the report Wayne. I'll try to reproduce your exact setup.

     
  • Fernando García Liñán

    • status: New --> Accepted
    • assigned_to: Fernando García Liñán
     
  • Gijs

    Gijs - 2024-01-17

    Hi Fernando and Wayne, did this get fixed in the mean time?

     
  • Wayne Bragg

    Wayne Bragg - 2024-01-17

    As far as I can tell, the spot lights I would have tested don't work in HDR mode as written, so I have to assume it was in ALS/Standard pipeline that this was occurring. Why this would be on Fernando then, I don't know. Anyway. I just tried to reproduce and I am not seeing it so I suspect it has been resolved. Feel free to close it. If it shows up again I can resubmit.

     
  • Fernando García Liñán

    I'm quite certain it got indirectly fixed in the clustered shading rework I had to do for HDR.
    Thanks Gijs for the reminder, will mark as solved for now.

     
    👍
    1
  • Fernando García Liñán

    • status: Accepted --> Done
     

Log in to post a comment.