Tag Archives: matchmove

PixelBender Cubic Lens Distortion for After Effects


Introduction


If you are doing Matchmove, you probably bumped into Lens work-flow issue, where you have to un-distort the footage in your matchmove software, then track it, and export a new undistorted footage, so your client can compose the 3d rendering on top of it and then distort it back.
I don’t really like this work-flow, since for instance AfterFx do not have Cubic Lens Distortion FX and it would be really hard for the client trying to match the distortion back.

After watching Victor Wolansky’s FXPHD Class on SYN202 (syntheyes) about Lens work-flow, I thought : “hey why not porting the lens distortion algorithm ?”. Pretty easy to do, since I already did it for HLSL & Martins Upitis did port my shader to GLSL !
Thanks to SSonTech for sharing there alogrithm


Pixel Bender Cubic Lens Distortion :

Not much to say, it does what it suppose to do ! You can copy & paste values from Syntheyes and it will match perfectly (or it should at least). See the screenshot below.

  1. Download CubicDistortion.pbk here : http://aescripts.com/ft-cubic-lens-distortion/
  2. Place it in your “Support Files” folder (which is in your AE install folder)
  3. Launch AE
  4. Look for the effect called Cubic Distortion

UPDATE : now with scale factor & chromatic aberration, see the post here

Thanks to Jerzy Drozda Jr (aka Maltaannon) for his great tips about Pixel Bender.

So now, you can create a new comp with your distorted footage > pre-comp it > undistorted it with the shader > track it in syntheyes > export the camera to a 3d package > render the scene > import the render into your pre-comp > desactivate the shader. Should match perfectly 🙂



Screenshots

(yeah I know, PFTrack grid with Syntheyes … not cool ! :p )

Distorted Grid
Syntheyes Cubic Undistortion
AE with Cubic Lens Distortion shader
compare AE & Syntheyes Lens distortion


Donation

If you wish




Tracksperanto, your universal tracking translator

tracksperantoI just found out this great online tool for matchmover which let you convert your track file to any other track you want.

This tool is free and under MIT License, it also comes with an API or source code to implement better to your software take a look at it !
via Tracksperanto, your universal tracking translator.

Matchmoving often needs precise, hand-tailored 2D tracks. The promise of automatic 2D tracking is grand, but often fails expectations — mainly because auto-tracking algorithms cannot reliably link tracks of the same point which temporarily goes out of picture or gets obscured. Therefore, for many shots 2D tracking by hand is a better option (it also allows one to speed up the solve by using less tracks and avoid overloading the solver by judicially choosing tracked features). However, the final result of the solve depends of the solving program and it’s always beneficial to try the solve in all the matchmoving software available.

Therefore, we found it convenient to do 2D tracks once (currently in Shake) and then export the resulting 2D tracks to a few 3D solving apps at once. Once within these apps, it’s mostly a 15 minute job to configure the camera and see if the solve comes out well or not. This method tends to yield very good results since you track once and at least one of the many 3D solvers on the market will give a correct computation.

Tracksperanto assists in translating 2D tracks between many formats so that you can move your 2D tracks from one application into all of the others.

Visual Effects: 100 Years of Inspiration

A nice video showing off the following movies  :

  • 1900 – The Enchanted Drawing
  • 1903 – The Great Train Robbery
  • 1923 – The Ten Commandments (Silent)
  • 1927 – Sunrise
  • 1933 – King Kong
  • 1939 – The Wizard of Oz
  • 1940 – The Thief of Bagdad
  • 1954 – 20,000 Leagues Under the Sea
  • 1956 – Forbidden Planet
  • 1963 – Jason and the Argonauts
  • 1964 – Mary Poppins
  • 1977 – Star Wars
  • 1982 – Tron
  • 1985 – Back to the Future
  • 1988 – Who Framed Roger Rabbit
  • 1989 – The Abyss
  • 1991 – Terminator 2: Judgement Day
  • 1992 – The Young Indiana Jones Chronicles
  • 1993 – Jurassic Park
  • 2004 – Spider-Man 2
  • 2005 – King Kong
  • 2006 – Pirates of the Caribbean: Dead Man’s Chest
  • 2007 – Pirates of the Caribbean: At World’s End
  • 2007 – The Golden Compass
  • 2008 – The Spiderwick Chronicles
  • 2008 – The Curious Case of Benjamin Button

RollingShutter Plugin by the Foundry for After FX and Nuke Released !!!

I talked about the Foundry working on solving the rolling shutter issue on a previous post. It seams they were waiting the Siggraph to announce it. At the time I though it was only for Nuke, but the great news is they also port their plugin to After Effect CS3 and CS4.

It seems they fixed the horizontal panning issue, but still not the vertical one, which at this point looks impossible but I’m actually waiting for another paper on stabilization which should show up at siggraph too. Anyway it’s going to help a lot for matchmove !!!

Official RollingShutter by Foundry plugin page

[SpareTime Project] PhotoSynth : Montpellier Antigone

This is a new “SpareTime Project”, playing (and testing) with Microsoft PhotoSynth.

Photosynth creates an amazing new experience with nothing more than a bunch of photos. Creating a synth allows you to share the places and things you love using the cinematic quality of a movie, the control of a video game, and the mind-blowing detail of the real world.

Most likely all you have to do is to take hundreds of picture, load it in PhotoSynth and it will automaticly stitch it together in 3D space 🙂

This is my first attempt by taking picture of Montpellier Antigone. So far I tried to re-create the path of the entire Antigone. But I guess I didn’t took enought picutre (about 400 photos) so it couldn’t stitch some different part together.

You will need Silverlight to test it or PhotoSynth plugin for the DX version. (damn Microsoft … couldn’t use Flash like everybody >_<)

Related Link :

What is going to be Blender 2.5 ?

I mean seriously ? Have you check what’s going on lately ? That’s insane out there !! I think that what Blender 2.5 is going to bring is what we usually call the 2.0 version of something ! Ok so like Pablo Vazquez answered me in one of his comments, it’s more going to be like 3.0 ! what I mean is *.5 version is usually for some few changes, right, but this !! this is going to be huge !!! Such a next step, so many official and non-official are working hard at this point to make it even better, stronger, faster, and also more complete.

Beside all the up going dev blender projects we can see on the web those are the one I’m keeping an eyes on and which I think is really really going to bring Blender to the next level :

  1. Libmv is certainly not the most important one (even if I’m checking there website almost everyday) and their dev at this point is running a bit slow. But this project is going to bring a 3d tracking / matchmove / dense reconstruction to blender and so as an opensource tools. I guess this will be really needed for the next Open Movie (not for Durian, but Mango ? ). As a Matchmover, I’m really looking forward on this one.
  2. New GUI is going to be more and more flexible to check out how it’s going to look like, check out Michael Fox‘s Blender 2.5 Video Tour and also the following video by Pablo Vasquez
  3. Blender GSoC 2009 this google summer of code is going to give some huge (and what I think really important) optimization to Blender. For instance the “Integration of OpenGL VBOs and vertex arrays for faster 3D Viewport rendering” which I believe will allow to bring the sculpt tool to a next level.
    Also the “Raytrace Optimization” which you can already find some nice results here.
  4. Jahka Particle (Boids Particle system v2.0). At the time I’m writting this, Janne Karhu re-write a new cache system for the particles, which allow realtime updating while changing setting, that’s just great. He’s also talking about making the particle system Nodal ?! with more rules and much faster. Just Great !!!
  5. Smoke Project by Daniel Genrich. His goal somehow is to integrate a smoke simulation with a fast viewport preview (kind of FumeFx or Houdini FX). This is another crazy project, and I love it.
  6. Volumetric Renderer by farsthary. Actually, I find all his work amazing. He’s already done with the volumetric Renderer (only waiting to be implement in the official build, but he’s also working on several projects as Final Gathering and so many other stuff !
  7. BMesh integration to be honest, this is not the most exciting one to me. Many people wants it only to get they Ngons feature into Blender (which FYI Ngons are really bad, bad, bad), oh well. I also understood that this new re-writting of the mesh system inside blender was necessary for other project to work more effeciently (which makes this project way more interesting !!

Of course, Not all those projects will be implemented into Blender 2.5 (probably not event 3.0) but maybe a few, and I found this really really exciting. I believe that in september will see some new stuff coming on (I hope ^^)

Marilena : source code of the Glasses Demo

Somebody remind me that I forgot to share the project of my demo using the Marilena project (OpenCV port).

So here is the source code, nothing fancy, nothing complicated, just a real basic use, but I guess it will help some of you who are interested.

This code is compiled with free tools as Flex SDK, Flash Develop , the optimized version of Marilena by Mario Klingemann and the AS3 Tweenlite class. If you never setup this kind of IDE before I highly recommend this tutorial which will help you with all the settings !

I’m not a programmer so this code is way too simple and not optimized at all, so feel free to re-use it as you want 🙂

[iframe http://www.pasteall.org/5725/actionscript/embedded 600 320]


Related Link :

[iframe http://rcm.amazon.com/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&bg1=FFFFFF&fc1=3F3636&lc1=E6005C&t=francoi-20&o=1&p=8&l=as1&m=amazon&f=ifr&asins=0596516134 120 240] [iframe http://rcm.amazon.com/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&bg1=FFFFFF&fc1=3F3636&lc1=E6005C&t=francoi-20&o=1&p=8&l=as1&m=amazon&f=ifr&asins=3836499320 120 240] [iframe http://rcm.amazon.com/e/cm?lt1=_blank&bc1=FFFFFF&IS2=1&bg1=FFFFFF&fc1=3F3636&lc1=E6005C&t=francoi-20&o=1&p=8&l=as1&m=amazon&f=ifr&asins=1934356034 120 240]

“The Foundry” fixing the Rolling Shutter issue in some cases

We have already seen some Siggraph papers about fixing this issue in some cases (cf. horizontal distortion), but now we can see that The Foundry is working on it !!!

The Foundry is a great company known for their Nuke compositing software and also very known for their awesome “Keylight” plug-in as many others !

Check Out their blog and follow their research about all this stuff

Original Plate :

Fixed plate :