Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

CalculateInterpolatedLightAndOcclusionProbes in Jobs

Discussion in 'Entity Component System' started by LennartJohansen, Mar 15, 2018.

  1. LennartJohansen

    LennartJohansen

    Joined:
    Dec 1, 2014
    Posts:
    2,394
    Hi.

    In 2018.1 there is a new system to sample lightprobes for use with instanced rendering.

    LightProbes.CalculateInterpolatedLightAndOcclusionProbes.
    Would it be possible to add this as a custom Job also. The same way the RaycastCommand is done?

    You provide the sample points in a NativeArray and it fills the result arrays with light and occlusion probe structs.

    It would be great to get a process like this of the main thread...

    @Joachim_Ante
     
    Last edited: Mar 15, 2018
    GilCat, WildStyle69 and antoripa like this.
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,132
    I passed the feedback on to the lighting team and they've added a note to their backlog.
     
  3. WildStyle69

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    318
    @LeonhardP -- is there any way we can know if / when this sample light probes job will be arriving?

    // WildStyle
     
  4. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,132
    The best way is by asking here. As for the feature itself, it hasn't been prioritised yet.
     
    Last edited: Apr 2, 2019
    WildStyle69 likes this.
  5. WildStyle69

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    318
    OK thanks @LeonhardP -- I'm developing a VR project and so be able to sample light probes in a job would be a huge win for performance. Plus also being an avid Vegetation Studio Pro user, at the moment it's not possible to use a mixed lighting setup effectively, as we cannot sample the probes efficiently with the instanced shaders.

    Here's to hoping this feature does arrive sometime in the not too distant future! :)

    // WildStyle
     
    LeonhardP likes this.
  6. WildStyle69

    WildStyle69

    Joined:
    Jul 20, 2016
    Posts:
    318
    Any news on this @LeonhardP -- hoping this will eventually happen, folks in the Vegetation Studio community keep asking about this limitation, so it's definitely something that would benefit a good number of developers and projects.

    // WildStyle
     
    Opeth001 likes this.
  7. sirleto

    sirleto

    Joined:
    Sep 9, 2019
    Posts:
    141
    Bump.

    i am searching to speed up CalculateInterpolatedLightAndOcclusionProbes() or GetInterpolatedProbe() and would love to hear if there is any way, trying to googleit only this thread here came up.