Search Unity

Point lights turning off and on

Discussion in 'Universal Render Pipeline' started by nzfs, Nov 15, 2020.

  1. nzfs

    nzfs

    Joined:
    Feb 26, 2020
    Posts:
    4
    hi, i have a scene with several point lights, and some of them turn on and off according to the player position in game mode, and also in the scene view. I've set the render mode to important in all of the lights and it still happens.


    any help how can i solve it?
    thanks
     
    anycolourulike likes this.
  2. BattleAngelAlita

    BattleAngelAlita

    Joined:
    Nov 20, 2016
    Posts:
    400
    URP had limit of a 8 lights per object. Looks like you reach it.
     
  3. nzfs

    nzfs

    Joined:
    Feb 26, 2020
    Posts:
    4
    is there any workaround this limitation?
    thank you.
     
  4. Kadae

    Kadae

    Joined:
    Dec 7, 2013
    Posts:
    52
    December 2021. Still no F***ing answer.
     
    anycolourulike likes this.
  5. BattleAngelAlita

    BattleAngelAlita

    Joined:
    Nov 20, 2016
    Posts:
    400
    >Kadae
    What do you want to hear? Limit is 8, you can remove some light, can wait for deferred rendering, can rewrite URP lighting system.
     
  6. nzfs

    nzfs

    Joined:
    Feb 26, 2020
    Posts:
    4
    if you dont need them realtime, you can just bake the lights, that's what i did.
     
  7. buddyroach

    buddyroach

    Joined:
    Sep 5, 2018
    Posts:
    1
    URP SUCKS!!!! broke my game. had this issue now I have to start a brand new project from scratch. a month worth of work down the drain. WTF? i know its possible because other games do it, even ones made in Unity so why cant I?
     
    anycolourulike likes this.
  8. awkwardstreamer

    awkwardstreamer

    Joined:
    Apr 21, 2020
    Posts:
    4
    I mean this shouldn't be a deal breaker, I mean it obviously depends on the game but for instance im able to have lights be active depending on the location of the player its definitely a little more work but having a light on in an area the player cant see is no good anyways just for optimization, so between sensors and just keeping that in mind with the design i was able to have my level feel like there were way more real time lights in it but it was really just cycling through 8 at a time depending on the location of the player. which is basically what unity is already doing but the problem is it does it based on distance so you end up with lights flickering on and off right infront of the player so this was my solution, im making a VR game so HDRP isnt really a solution for me . i do feel you tho, 8 is too small.. i feel like if it were even just 12 it be so much easier
     
  9. Kadae

    Kadae

    Joined:
    Dec 7, 2013
    Posts:
    52
    I think user must choose the number of lights limitation, not Unity. 8, 12 or 64, or 1000 active lights per scene. It's my project, my choice how to use engine rendering.
     
    anycolourulike likes this.
  10. Sky77

    Sky77

    Joined:
    Jan 30, 2014
    Posts:
    171
    Use URP Deferred or HDRP then.
    There's a technical reason why there's an 8 light limit on URP
     
    M_1t likes this.
  11. Kadae

    Kadae

    Joined:
    Dec 7, 2013
    Posts:
    52
    Yeah, I using URP Deferred render now and it's work perfectly. Thanks!
     
    INumenor and Rumbod like this.
  12. matti295

    matti295

    Joined:
    Mar 21, 2015
    Posts:
    1
    how are you using deferred in urp?
    it isnt supported right now..
     
  13. Sky77

    Sky77

    Joined:
    Jan 30, 2014
    Posts:
    171
    It’s supported on URP 12, in Unity 2021.2.
     
  14. Rumbod

    Rumbod

    Joined:
    Feb 2, 2013
    Posts:
    1
  15. unity_48146ADA5C9FA33F0A59

    unity_48146ADA5C9FA33F0A59

    Joined:
    Aug 24, 2022
    Posts:
    4