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

Retrieving Cubemaps from Reflection Probes

Discussion in 'Global Illumination' started by Kylepespinoza, Jul 12, 2017.

  1. Kylepespinoza

    Kylepespinoza

    Joined:
    Jul 12, 2017
    Posts:
    7
    Hello Community!

    I'm working on a project where we would like to obtain cubemap textures from reflection probes, like using a 360º camera to take 360º pictures. I know the cubemap data is stored within the GI cache, but I have no idea how to access it or use it as a texture.

    Any help would be greatly appreciated!
     
    jc_lounge likes this.
  2. FlaxenFlash

    FlaxenFlash

    Joined:
    Oct 15, 2015
    Posts:
    28
    If you look into the folder where the lighting data is stored when you have baked your scene you will find the reflection probe data there stored as an exr texture. You can assign this to cube map texture slots elsewhere in Unity. On my project we create our skyboxes in a scene, generate a reflection probe for that scene and then use that probe texture as the skybox in our main scene.
     
  3. Kylepespinoza

    Kylepespinoza

    Joined:
    Jul 12, 2017
    Posts:
    7
    Awesome, that is exactly what I'm looking for! Thank you very much!