Cycles Stereoscopic Render

Hi!
Based on the code of Dalai Felinto for Panoramic Cameras I’m trying to implement an option to render a Stereoscopic Image on Cycles on one pass.

This is my advance so far, the result is not a true stereoscopic image, I can’t change the perspective of the camera right now.

Now I’m facing two problems:
A) ¿How to transform the Camera Matrix on render Time? (Right now I can only change the Raster Matrix)
B) ¿How to deal with render Size, so Idon’t need to reescale the result?


Regards!!

Now some images with True Stereoscopy (Remember, it are not two images, but only one stereoscopic image):



Here are the instructions about how to see this images without glasses.

Regards!!

Another Video!

https://youtu.be/AbhU0qnAqS8