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

Extract light/ shadow from 3D world and display on 2D sheet

Discussion in 'Scripting' started by sTorrr, Dec 30, 2020.

  1. sTorrr

    sTorrr

    Joined:
    Oct 28, 2018
    Posts:
    128
    Hi, is it possible to extract all lightning and shadows from 3D scene, convert it to 2D and display it ontop of sheet? Maybe with adjustable opacity?

    upload_2020-12-30_11-13-51.png
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,336
    There are shaders that can do this... I think things like ScreenSpace Ambient Occlusion (SSAO) might give you a jump on it. You could also stage up white objects and render it to a RenderTexture, then put that in front of your camera on a card or canvas or something.
     
  3. sTorrr

    sTorrr

    Joined:
    Oct 28, 2018
    Posts:
    128
    Ok, thanks for the tips. I need to do further research and testing
     
  4. sTorrr

    sTorrr

    Joined:
    Oct 28, 2018
    Posts:
    128
  5. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,336
    I don't see any connection between that API and your original question, but I could be wrong. You want to definitely get familiar with the basics because it will help you reason about what you're trying to do.
     
  6. sTorrr

    sTorrr

    Joined:
    Oct 28, 2018
    Posts:
    128
    Can I make a scene with ScreenSpace Ambient Occlusion (SSAO) to be somewhat transparent, adjust opacity. Then do something like in this movie?

     
  7. seejayjames

    seejayjames

    Joined:
    Jan 28, 2013
    Posts:
    685
    RenderTexture is definitely what you'd want for the final output, though am not sure how to get everything you want from the scene into it.