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

Question Chroma key and feet shadows issue

Discussion in 'Virtual Production' started by morfevs, Aug 12, 2023.

  1. morfevs

    morfevs

    Joined:
    Dec 21, 2016
    Posts:
    15
    Hello!

    I would like to start producing some virtual films. I do have a green screen and I am looking for a solution to Chroma Key.

    My first concern are the feet and the shadow they cast, looks like it will be an unsolvable problem? :p

    If the feet of the actor are aligned in the beginning of the quad/plane then the shadow connects OK. But what if the actor is walking? Or has a stance where one foot is in front, like a skateboard.They wont be aligned then the shadow from the front foot is OK but not for the foot behind. I attach a screenshot - please take a look

    I saw that in After Effects or Premiere one can distort and move the shadow. Can you do this in Unity? Perhaps a projection?

    The cool thing about all of this is that the shadows are projected from a light inside unity so they are as correct as they can get.
     

    Attached Files:

  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,427
    I'm not an expert here, but maybe there is some interesting knowledge in this video until someone else responds

     
  3. morfevs

    morfevs

    Joined:
    Dec 21, 2016
    Posts:
    15
    Waiting for people that does chroma key and has the traditional shadow issue, when using the keyed actor in unity and a real time.
     
  4. unity_420E2F030C71A834B25B

    unity_420E2F030C71A834B25B

    Unity Technologies

    Joined:
    Aug 20, 2021
    Posts:
    7
    Hello! In the scenario you describe, the chromakey video is just a texture displayed on a plane, so any shadows that are cast will be similar to what would be expected from a flat cardboard cut-out. You should take this into account when designing your shots.

    You may be able to put some approximation of what you need with some experimentation. For example, you could duplicate the keyed plane, mirror it on the Y axis, align the feet, make it look like a shadow using some filters (desaturate, darken, blur). This would result in a shadow texture on a plane, but it would just "float" in the scene and not interact with any of the geometry.

    Another possible approach would be to have an invisible 3D character model in the scene that only casts shadows to create a shadow that approximates the keyed actor's motion.