Jump to content
Imbalanced Zero

3D SBS to Interlace

Recommended Posts

Imbalanced Zero

If you have a Passive 3D TV or Monitor, this shader should be useful. It should allow you to watch Side-by-Side broadcasts without you needing to switch to 3D Mode. And the best thing is you get to keep your EPG intact. It will only work in full-screen, not entirely sure how you make it work when it's windowed, but maybe someone else will figure that one out.

 

 

<?xml version="1.0" encoding="iso-8859-1"?>
 <Shader>
   <Profile>ps_2_0</Profile>
   <Description>Side By Side to Line-Interlace</Description>
   <Code>
sampler s0 : register(s0);
float4 p0 : register(c0);


#define width (p0[0])
#define height (p0[1])
#define halfscreenheight height/2
float4 main(float2 tex : TEXCOORD0) : COLOR 
{

tex.x = tex.x*0.5;

float4 l =tex2D(s0, float2(tex.x,tex.y));

tex.x = tex.x + 0.5;

float4 r =tex2D(s0, float2(tex.x,tex.y));

float grid = frac(tex.y*halfscreenheight);


if (grid>0.5) {
return l;
} else {
return r;
}
}</Code>
 </Shader>

SBS.xml

Share this post


Link to post
unklez

Would this work with DLP projectors?

 

Think I need checkerboard mode instead of interlace for DLP :P

Edited by unklez

Share this post


Link to post
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...