Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects 2D to 3D Conversion using Displacement Maps

  • Darby Edelen

    January 5, 2009 at 6:12 pm

    Since you’ve opened this can of worms I thought I’d post my own contribution. Here are expressions you can apply to your displaced layer to have the ‘3D’ perspective dynamically change based on the composition’s active camera:

    For Horizontal Displacement:

    h = 150;
    c = thisComp.activeCamera;
    cp = c.toWorld([0,0,0]);
    p = toWorld(anchorPoint);
    v = p - cp;
    x = radiansToDegrees(Math.atan2(v[0],v[2]));
    y = radiansToDegrees(Math.atan2(v[1],v[2]));
    linear(x, -90, 90, h, -h);

    For Vertical Displacement:

    h = 150;
    c = thisComp.activeCamera;
    cp = c.toWorld([0,0,0]);
    p = toWorld(anchorPoint);
    v = p - cp;
    x = radiansToDegrees(Math.atan2(v[0],v[2]));
    y = radiansToDegrees(Math.atan2(v[1],v[2]));
    linear(y, -90, 90, h, -h);

    These provide approximations and rely on accurate depth maps.

    Darby Edelen

  • Brad Bartkus

    January 5, 2009 at 6:26 pm

    That shot of the Mona Lisa doesn’t even use a camera. The Mona Lisa is simply distorted left to right and the background is just stepped or offset left to right.
    Do you have a movie clip or animated gif to show what your expression actually looks like when applied? That would be very helpful.
    Thanks!

  • Darby Edelen

    January 6, 2009 at 1:00 am

    The expressions I provided are pretty basic and don’t take into account the orientation of the layer they’re applied to. If I have some free time I might work on that. Also, this is very simple parallax mapping and doesn’t actually give the layer any depth, just the appearance of depth. At extreme angles the effect smears and falls apart.

    Darby Edelen

  • Zhang Jiajun

    January 6, 2009 at 3:04 am

    I am a rookie,being interested in AE very much.I do not know how much time have I stay here,I only know that I have read many book and articles about AE in this site.Thank for your tutorial,thanks for your help.
    By the way,my English is very poorand I come from Chinese,majoring Advertisement technique.
    Thanks for your reading.

    I like it

  • Clyde Villegas

    January 6, 2009 at 5:21 am

    How are those maps made? Is there a good tutorial on it?

    ut in omnibus glorificetur Deus

  • Brad Bartkus

    January 6, 2009 at 3:25 pm

    The maps are made in Photoshop. I start with a grey layer and use the Dodge and Burn tools, duplicate channels and use them as masks, etc.
    There are Plug-Ins for Maya and 3DS that will actually render your video with a depth map channel for use on 3d monitors. Like this:
    https://www.wowvx.com/

  • Roland R. kahlenberg

    January 6, 2009 at 5:43 pm

    Very cool stuff Darby. Me thinks a COW Tutorial is in order. 🙂

    Cheers
    RoRK

    broadcastGEMs.com – the leader in customizable royalty-free animated backdrops

  • David Ghast

    January 6, 2009 at 7:25 pm

    you mean if i import a video into maya using that plugin it will apply a displacement map which will allow for a stereoscopic view of any 2d source?

    Im wondering what the limitations are. I imagine you would lose part of screen(or a zoomed loss of resolution) to account for having to pivot the screen in 3d space.

  • Brad Bartkus

    January 6, 2009 at 7:52 pm

    No. If you render out your animation from Maya that plug-in generates the depth map which creates the stereoscopic views, when viewed on a 3d monitor give you a 3d video without the need for glasses. (The monitors have a lenticular lens on their surface.)

  • Erik Bruhwiler

    July 26, 2010 at 5:50 pm

    Very clever! Just what I was looking for.

    Much appreciated.

    -Erik Bruhwiler

Page 1 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy