Search Unity

Shadows

Discussion in 'Editor & General Support' started by reddogg, Jun 17, 2013.

  1. reddogg

    reddogg

    Joined:
    Jun 17, 2013
    Posts:
    11
    Hi,
    I'm developing an augmented reality app.
    The object showed when target is detected project shadows on a white plane (now).
    there is a method to have shadow catcher plane under 3D model when it is rendered in app so shadows seems projected on real plane in camera image?
    I'm tring to illuminate my scene using light map and I want have shadows of the object rendered over the real printed target.

    Someone have some idea?



    Tank You
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Why not make a fake shadow?
    We do use a 3d program to render a shadow map for the ground.
    That shadow map can then be used as an alpha channel for an black image.
    Now just make a plane with a transparent shader under the object , assign the texture : you have your nice fake shadow.
    (Works ony for plain ground and not part animated objects (We did use it for cars))

    Or your way (Not tested) : http://forum.unity3d.com/threads/11...nsparency-shader?p=81704&viewfull=1#post81704
     
    Last edited: Jun 17, 2013