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

Accessing Umbra's Spatial Database Within Unity or Via Plugin?

Discussion in 'Scripting' started by olkeencole, Aug 25, 2011.

  1. olkeencole

    olkeencole

    Joined:
    Oct 2, 2009
    Posts:
    17
    I am part of a project that seeks to use Unity to create 3D visualizations from spatial analysis. A big part of the analysis will consist in what can be seen from any given viewpoint. This is something Umbra already computes for occlusion culling. My question is Is there a way programmers can access the spatial database Umbra creates for occlusion culling either in UnityScript or plugin? The aim is to use this database for other purposes rather than occlusion culling. It'd be awesome if this were possible.
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    It is not possible to access the umbra data in any form, nor is the format documented and open.

    I am also not sure that any spatial data are stored and not just positional relationships on what spots can be seen from where (potentially with just the final point furthest away within cam range per ray).
     
  3. olkeencole

    olkeencole

    Joined:
    Oct 2, 2009
    Posts:
    17
    That's a bummer. The reason I mention a spatial database is because 1) when you bake using Umbra it computes PVS for the different cells and I would assume this would have to be stored somewhere for use during runtime, and 2) the white paper on Umbra's website mentions a spatial database, although I see now that is talking about the Engine Booster and I don't know if that is the same thing Unity is using. But the way Umbra is described in the last link down below is that it does a visibility query for any given space, which finds a "set of objects visible from a point or region" and this data is exactly what would we like to use for purposes other than occlusion culling.


    http://cdn3.xiha.fi/umbrasoftware.com/downloads/EngineBooster.pdf
    http://www.umbrasoftware.com/en/umbra3/