Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity instancing can't work with lightprobe or precomputed lights?

Discussion in 'Shaders' started by Danua, Feb 19, 2017.

  1. Danua

    Danua

    Joined:
    Feb 20, 2015
    Posts:
    197
    Hi everyone, can you explain where I can use this gpu instancing if he can't work with lightprobe or prebaked GI? I haven't any ideas
     
  2. Danua

    Danua

    Joined:
    Feb 20, 2015
    Posts:
    197
  3. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,248
  4. Danua

    Danua

    Joined:
    Feb 20, 2015
    Posts:
    197
    This don't work, light probe proxy volume ruin instancing!
     
  5. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,248
    You need to be using a shared light probe proxy volume by using the proxy override to point all objects at a single large volume for it to work, not individual volumes for each object. If that doesn't work then there's something else you're doing that's breaking instancing, or there's a bug.
     
    IgorAherne likes this.
  6. Danua

    Danua

    Joined:
    Feb 20, 2015
    Posts:
    197
    no this don't work. wtf. If lightprobe simply turn on in scenes they destroy instancing. even if I use proxyvolume override for group objects.
     
    Last edited: Feb 21, 2017
  7. IgorAherne

    IgorAherne

    Joined:
    May 15, 2013
    Posts:
    385
    hahah :'D
     
  8. unity_W3rLGozcKkUuGg

    unity_W3rLGozcKkUuGg

    Joined:
    Apr 25, 2019
    Posts:
    11
    There's some time since this original post so i'm just wandering if lightprobes still breaks batch and gpu instancing.
     
  9. IgorAherne

    IgorAherne

    Joined:
    May 15, 2013
    Posts:
    385
    unity_W3rLGozcKkUuGg likes this.
  10. unity_W3rLGozcKkUuGg

    unity_W3rLGozcKkUuGg

    Joined:
    Apr 25, 2019
    Posts:
    11
    Thanks Igor. I noticed that this post says the static batch work with lightprobes which give us a good hint about what's going on.
    Anyone knows if the same apply for GPU Instancing? Better asking.... does Unity internally handles lightprobes as a per-instance data or some sort of global shared structure? How Probe Proxy Volumes are different on that?
     
  11. Danua

    Danua

    Joined:
    Feb 20, 2015
    Posts:
    197
    It's working all the way up