Playing 3D SBS Videos for different colors Anaglyph 3d glasses

Last updated on December 24, 2012 @ No comments yet

Related to my previous posts “Playing 3d videos with MFC“, I’ve got a question from my fiend asking about watching 3D movies with MFC using the other than Red Cyan colors of Anaglyph 3D glasses. I said, you have to change the conversion function on avisynth script. Actually, you can see all  conversion function of Pantarheon 3D AviSynth Toolbox from their official website (if you do not know what we’re talking about, please kindly re-read my previous post).

They have many of conversion functions which not only handling SBS videos to Red Cyan Anaglyph, but other type of 3d videos source and various type of 3D video output including Anaglyph and non Anaglyph output type.

avisynth script

On the previous post we put red cyan function on avisynth script, let’s take a review at our previous Avisynth scripts.

c = ConvertToRGB32()
w = c.width()/2
h = c.height()/2
LeftRight3DToRCAnaglyph(c).Lanczos4Resize(w, h)

The bold text are Pantarheon’s function, which convert Left Right videos (SBS) to RCA Anaglyph 3D (Red Cyan). Now if you want to use another colors of anaglyph glasses, make sure you know what colors is the glasses use, check on their website and look for what function is needed to match your glasses, and replace the Pantarheon’s function with the new function on your avisynth script. There are only 4 functions for Anaglyph 3D glasses and SBS video sources,which is:

LeftRight3DToAnaglyph(c)     //Not sure for what glasses is this function
LeftRight3DToRCAnaglyph(c)    //SBS to Red Cyan Anaglyph function
LeftRight3DToGMAnaglyph(c)    //SBS to Green Magenta Anaglyph function
LeftRight3DToYBAnaglyph(c)    //SBS to Yellow Blue Anaglyph function

pantarheon functions

For example we have a Yelow Blue Anaglyph 3D glasses, so our scripts would be changed to:

c = ConvertToRGB32()
w = c.width()/2
h = c.height()/2
LeftRight3DToYBAnaglyph(c).Lanczos4Resize(w, h)

Our scripts only support SBS (Left Right) 3D video format source, for another 3D source format you have to write different script with different function to suit your video source.

M Riza

Article by M Riza

Is a blogger since 2007, founder and editor of Oa Ultimate. Working as a network administrator, computer technician, database and web maintainer | Twitter | G+

Leave a Reply


Loading Google+ Comments ...
Loading Facebook Comments ...