Log in

View Full Version : 2D to 3D stereo, AVS + Displace plugin


Mcmount
24th September 2011, 18:17
Hi,

The following packages enables you to convert 2d to 3d stereo with bidirectional pulfrich effect + add depth to stationary objects.

To make it short:

I use MVTools V2 to get positive and negative X movements, build a mask and replace current frame with previous one according the mask. This way I get bidirectional covarage for the movement.

Next, I compute motion mask, add chrominance mask and greyscalemask and get a final mask for the displace.dll plugin.
This plugin will simply shift foreground rgb according the mask luminance to the right or to the left.

I really hope someone could help to finalize this Displace.dll plugin, as it's buggy and I don't have any skills with C++.

Samples:

http://www.youtube.com/watch?v=af1hlrhBEos
http://www.youtube.com/watch?v=RhuSNseZQSc

Comments are welcome !

McM

Mcmount
16th November 2011, 11:44
Here are the new versions of the tools which converts 2D video to 3D stereo video.

Depthmap is created with multiple methods; luminance, chrominance, motion and gradient mask.

As a base I've used Pulfrich method, where previous frame is layered to different eye according the movement direction. This is done with motion mask.

Next the displacement mask (depthmap) is built. Pulfrich modified frames + masks are the fed to displacement plugin and the final result is in side-by-side format.

The avs script is heavily optimized and therefore might be bit difficult to understand.

Comments are welcome !

Mcm

Sparktank
18th November 2011, 08:40
I remember this thread.
Downloaded the first set and completely forgot about it lol.

Going to check this out.

Deathman
8th December 2011, 13:02
Hiya, ive tried your script etc but all i get if i try and play the script is a grey screen .. and if i try and reencode with it, it crashes any encoder i try. any ideas? im trying to convert a 720p mkv btw