Are you taking the whole feed from a non SBS screen and converting it to SBS with the depth processing ? i.e you're not starting from a SBS view of iStripper ?
Correct, I'm taking the Entire 2D view, 2D background and 2D model, exactly what is seen in the OBS view a screen 2.
I capture a frame from Screen 2, apply my 3D transition, Pixel Shift the Right eye
Display the Capture as the Left Eye and the Pixel shifted image as the right eye.
I also do Frame buffering, so that the Left eye is one Frame or multiple Frames ahead of the Right Eye.
A Zero Frame Buffer Means, the 3D effect is Purely from the Applied Gradient.
A One frame Buffer, means that the Right eye, has Pixels from the Previous frame included.
"Doe the .py program analyse the whole frame and say.... looking at the gradient and edges, I will move this pixel n steps ? If it does and you get gaps, how do you fill them ?"
yes the entire frame is analyzed.
A blur to the overall gradient is applied, the edges are softened and applied to give edge definition.
It's N steps times the Shift Amount. The Gray value of the Gradient controls N, and the Shift Amount is the Multiplier.
Shift can be Positive or Negative, and the Gradient can also Be Inverted.
I'm assuming this has no concept of depth from shape, so for example the side walls of a room aren't given any extra depth other than that derived from their gradient and edge effects ?
I start at the Bottom, and Scan upwards, each Edge is assigned a gray Gradient based on how far from the bottom it is.
Gradients have a color Range, say 1 to 10, and then the Next Level Gradient has a Gap say of 30
so then the very Next gray level would start at 40 10 + gap of 30 = 40 to 50
So these two levels would be
Gradient 1 is 1 to 10
Gap of 30
Gradient 2 is 40 to 50
Gap of 30
Gradient 3 is 80 to 90
repeat
After all the Gradients are built, an Over all blur is applied, and then the soft Edge detections are blended back in
This becomes the Pseudo Depth Map
Depending on the Mode...
a Gray Scale of the Captured Frame is also Blended in or not..
Most All of these can be tweaked on the fly.
In addition to the Live 2Dto3D
I included a File Conversion
where the Video Frames are read from a video File, conversion applied, and then displayed, And / Or Saved to an Ouput File.