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. Dismiss Notice

Render cubemap and export to HDR file

Discussion in 'General Graphics' started by RodeoRich, Mar 18, 2021.

  1. RodeoRich

    RodeoRich

    Joined:
    Mar 20, 2019
    Posts:
    7
    Hi there,

    I'm trying to generate a cubemap of my environment and export it to a texture file like an HDR file.
    I have a script that creates my scene and places a camera. I then use
    Camera.RenderToCubemap()
    . This works fine and create the cubemap I want. Is it possible to export?

    I can save it as an asset I suppose. but I'd really like to be able to export it as a texture. Does Unity have this ability?

    Thanks,
    - Rich
     
  2. lilacsky824

    lilacsky824

    Joined:
    May 19, 2018
    Posts:
    164
  3. TwoPointStudios

    TwoPointStudios

    Joined:
    Oct 20, 2020
    Posts:
    2
    Ah, that's perfect. Thank you!
     
  4. Recluse

    Recluse

    Joined:
    May 16, 2010
    Posts:
    485