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

Taking screenshot of the entire environment

Discussion in 'Editor & General Support' started by pakkun01, Sep 30, 2014.

  1. pakkun01

    pakkun01

    Joined:
    Feb 10, 2014
    Posts:
    18
    Hello everyone,

    I'm building sidescroll environments for a game. The camera only rendering a portion of the whole scene. Is there a way to take a screenshot of the entire environment, and setting a resolution at the same time?

    First I tried to take screenshots of every part of it and clipping in photoshop but obviously doesn't fit right because of perspective hehe (a desperate and nonsense idea...).

    So, perhaps if I can determine a point to be the perspective focus (suppose to be center of the scene) and a way to take this "forced enlarged screenshot" I think could it work..

    Is like a panoramic photo but unlike take a 360º picture I'm just want the limits of my sidescroll environment.

    Any ideas?

    Thank you very much!
     
  2. mbowen89

    mbowen89

    Joined:
    Jan 21, 2013
    Posts:
    639
    Maybe use an orthographic camera and render to a huge render texture resolution and save it?
     
    pakkun01 likes this.
  3. pakkun01

    pakkun01

    Joined:
    Feb 10, 2014
    Posts:
    18
    Yeah, but I would like to preserve perspective either... I want to make some kind of illustration on this image. So orthographic camera would not work..

    Thanks for your answer buddy!
     
  4. mbowen89

    mbowen89

    Joined:
    Jan 21, 2013
    Posts:
    639
    What about a perspective camera that is really zoomed out, but its at such a high resolution that it would still work?
     
  5. xerotechnologiesnetllc

    xerotechnologiesnetllc

    Joined:
    Jul 1, 2014
    Posts:
    49
    I would go with mbowen89's solution. Create a second camera and disable it by default.
    When you do your screenshot, disable the primary, enable the 'screenshot cam', take the shot, then return to the main camera. The only downside to this is that there may be a flash on the screen that will make players go...WTF just happened? lol

    But you could do some testing and find a solution on this track that would work I would imagine.
     
  6. mbowen89

    mbowen89

    Joined:
    Jan 21, 2013
    Posts:
    639
    I don't think he is trying to do this in a live game, just to get footage out in editor.