WIP Stereoscopic 3D support for half/full SBS, over/under, etc
(2013-12-16, 20:08)Lamerjack Wrote: Thanks a lot!
maybe this can be usefull to some developers:

sampler s0 : register(s0);
float4 p0 : register(c0);

#define width (p0[0])
#define height (p0[1])

float4 main(float2 tex : TEXCOORD0) : COLOR
{
tex.x = tex.x / 2;

float4 l = tex2D(s0, tex);

tex.x = tex.x + 0.5;

float4 r = tex2D(s0, tex);

float red = l.g * 0.7 + l.b * 0.3;
float green = r.g;
float blue = r.b;

return float4(red, green, blue, 1);
}

is the shader that i use with mpchc for optimized anaglyph (red cyan) the result is much better when there cyan or red things on the video

Thanks, but I'm not sure we're using a shader for this. We currently lack devs that know their way around with shaders, so if you like and can, we'd still need a shader to convert the input into row- and column-interleaved/interlaced (while row interleaved is the more demanding)
Reply


Messages In This Thread
RE: Stereoscopic 3D support for half/full SBS, over/under, etc - by da-anda - 2013-12-17, 11:07
Intel® InTru™ 3D support - by acidizer - 2014-01-26, 12:47
, - by User 102910 - 2014-08-08, 11:11
Logout Mark Read Team Forum Stats Members Help
Stereoscopic 3D support for half/full SBS, over/under, etc11