<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19120">
<STYLE></STYLE>
</HEAD>
<BODY dir=ltr bgColor=#ffffff>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>You can use custom shader if your application support shader and 
clip-plane.<BR>I rember introduce in some “PS3 stereo” or “PS3 S3D” 
document.<BR><BR>Shader can split screen into up-down by a clip-plane and use 
shader to draw scene twice.  <BR>see below:<BR><BR>... setup clip-plane 
...</DIV>
<DIV> </DIV>
<DIV>...  vs shader ...<BR></DIV>
<DIV>        Out.Position = mul(In.Position, 
WorldViewProj) ;</DIV>
<DIV>        Out.Position.y *=  0.5 
;</DIV>
<DIV>        float2 
interaxialOffset;     </DIV>
<DIV>        float interaxialAdjust ;</DIV>
<DIV>        interaxialAdjust = max 
(interaxial , viewZRange.x );</DIV>
<DIV>        interaxialOffset = currentpass ? 
float2 (interaxialAdjust ,Out.Position.w)* 0.5  :  float2 
(-interaxialAdjust  ,-Out.Position.w) * 0.5;</DIV>
<DIV>        Out.Position.xy  += 
interaxialOffset ;</DIV>
<DIV><BR>... compile ... <BR></DIV>
<DIV>technique main { </DIV>
<DIV> </DIV>
<DIV>pass Pass_R    {    </DIV>
<DIV>   VertexShader = compile vs_3_0 vs_main();</DIV>
<DIV>   PixelShader = compile ps_3_0 
ps_single();      </DIV>
<DIV>   AlphaTestEnable = FALSE; </DIV>
<DIV>   AlphaBlendEnable = FALSE; </DIV>
<DIV>   ZEnable = TRUE ;</DIV>
<DIV>   ZFunc = LESSEQUAL; </DIV>
<DIV>   ZWriteEnable = TRUE;    </DIV>
<DIV>   ClipPlaneEnable =2;</DIV>
<DIV>   }</DIV>
<DIV> </DIV>
<DIV>pass Pass_L    {    </DIV>
<DIV>   VertexShader = compile vs_3_0 vs_main();</DIV>
<DIV>   PixelShader = compile ps_3_0 
ps_single();      </DIV>
<DIV>   AlphaTestEnable = FALSE; </DIV>
<DIV>   AlphaBlendEnable = FALSE; </DIV>
<DIV>   ZEnable = TRUE ;</DIV>
<DIV>   ZFunc = LESSEQUAL; </DIV>
<DIV>   ZWriteEnable = TRUE;    </DIV>
<DIV>   ClipPlaneEnable =1;</DIV>
<DIV>   }</DIV>
<DIV> </DIV>
<DIV>}</DIV>
<DIV> </DIV>
<DIV>we use these code in our demo <A 
title=http://www.youtube.com/watch?v=8LD5fgrjdjM 
href="http://www.youtube.com/watch?v=8LD5fgrjdjM">http://www.youtube.com/watch?v=8LD5fgrjdjM</A><BR>with 
custom shader, even post effects work well.</DIV>
<DIV><BR>Also, you can try BS Contact Stereo. It’s good also but you need buy it 
for remove flying 
Logo.<BR><BR>----------------------------------------------<BR>skype:m17.meng<BR><A 
href="http://17de.com/x3d/index.en.html">http://17de.com/x3d/index.en.html</A></DIV>
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV style="FONT: 10pt tahoma">
<DIV> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=CLamb@acm.org 
href="mailto:CLamb@acm.org">Charles P. Lamb</A> </DIV>
<DIV><B>Sent:</B> Wednesday, September 14, 2011 11:17 AM</DIV>
<DIV><B>To:</B> <A title=x3d-public@web3d.org 
href="mailto:x3d-public@web3d.org">X3D Graphics public mailing list</A> </DIV>
<DIV><B>Subject:</B> [X3D-Public] implementing stereo display</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV 
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">
<DIV><FONT size=2 face=Arial>Lately, I've been thinking about how to best 
produce stereo imagery using X3D.  I've noticed that FreeWRL does it all in 
the browser.  I'm wondering if a better approach is to have two active 
viewpoint nodes--one mapped to the browser left image display and one to the 
browser right image display.  This will allow for more 
flexibility.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>The problem is that at least one of the parameters 
belongs in both the browser side and in the scene side.  Although the lines 
of sight are almost always set as parallel I can imagine a user wanting to 
experiment with non-parallel lines of sight.  I can see the inter-aperture 
distance changed within the scene as a creative decision.  However, the 
intra-aperture distance will also need to be changed based on the size of the 
display and the distance to the viewer.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Anyone have any other thoughts?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Charles P. Lamb</FONT></DIV>
<P>
<HR>
_______________________________________________<BR>X3D-Public mailing 
list<BR>X3D-Public@web3d.org<BR>http://web3d.org/mailman/listinfo/x3d-public_web3d.org<BR></DIV></DIV></DIV></BODY></HTML>