Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    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:
    20
    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:
    5,146
    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:
    20
    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.