Activity › Forums › Adobe After Effects › 2D to 3D Conversion using Displacement Maps
-
2D to 3D Conversion using Displacement Maps
Posted by Brad Bartkus on January 5, 2009 at 5:36 pmThis may be handy for AE users out there:
https://lenticularblog.rrd.com/bid/7085/2D-to-3D-ConversionThe layering and map was done in Photoshop, then brought into AE and the map was applied to the Mona Lisa layer.
Erik Bruhwiler replied 15 years, 9 months ago 7 Members · 11 Replies -
11 Replies
-
Darby Edelen
January 5, 2009 at 6:12 pmSince 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 pmThat 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 amThe 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 amI 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 amHow are those maps made? Is there a good tutorial on it?
ut in omnibus glorificetur Deus
-
Brad Bartkus
January 6, 2009 at 3:25 pmThe 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 pmVery cool stuff Darby. Me thinks a COW Tutorial is in order. 🙂
Cheers
RoRKbroadcastGEMs.com – the leader in customizable royalty-free animated backdrops
-
David Ghast
January 6, 2009 at 7:25 pmyou 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 pmNo. 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 pmVery clever! Just what I was looking for.
Much appreciated.
-Erik Bruhwiler
Reply to this Discussion! Login or Sign Up