<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>996</bug_id>
          
          <creation_ts>2014-03-06 11:49:57 +0100</creation_ts>
          <short_desc>Stereo not working on Java 7</short_desc>
          <delta_ts>2020-02-02 02:37:04 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>General</classification>
          <product>Java3D</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>pc_x86_64</rep_platform>
          <op_sys>linux</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Bartosz Borucki">babor</reporter>
          <assigned_to name="Phil Jordan">p.j.nz</assigned_to>
          <cc>babor</cc>
    
    <cc>gouessej</cc>
    
    <cc>harvey.harrison</cc>
    
    <cc>p.j.nz</cc>
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3833</commentid>
    <comment_count>0</comment_count>
    <who name="Bartosz Borucki">babor</who>
    <bug_when>2014-03-06 11:49:57 +0100</bug_when>
    <thetext>It seems that some changes introduced to Java 7 cause that stereo is not working. The same code using Canvas3D from Harvey&apos;s Java3D 1.6.0-pre9 works properly on JRE 1.6 and on JRE 1.7 only one eye is rendered.

This was tested on platform: Linux 64-bit + Nvidia Quadro 6000 + 331.38 driver + current JOGL + Java 3D 1.6.0-pre9


Example code:
-----------------------------
import com.sun.j3d.utils.geometry.ColorCube;
import com.sun.j3d.utils.universe.SimpleUniverse;
import java.awt.BorderLayout;
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsEnvironment;
import javax.media.j3d.BranchGroup;
import javax.media.j3d.Canvas3D;
import javax.media.j3d.GraphicsConfigTemplate3D;
import javax.media.j3d.Shape3D;
import javax.media.j3d.View;
import javax.swing.JFrame;

public class Java3DTest {

    public static void main(String[] args) {
        GraphicsConfigTemplate3D template = new GraphicsConfigTemplate3D();
        template.setStereo(GraphicsConfigTemplate3D.REQUIRED);
        GraphicsConfiguration gcfg
                = GraphicsEnvironment.getLocalGraphicsEnvironment().
                getDefaultScreenDevice().getBestConfiguration(template);
        final Canvas3D canvas = new Canvas3D(gcfg);
        canvas.setStereoEnable(true);        

        JFrame frame = new JFrame(&quot;test frame&quot;);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setBounds(0, 0, 640, 480);
        frame.setLayout(new BorderLayout());
        frame.add(canvas, BorderLayout.CENTER);
        frame.setVisible(true);
                
        SimpleUniverse universe = new SimpleUniverse(canvas);
        View view = canvas.getView();

        BranchGroup scene = new BranchGroup();
        Shape3D shape = new ColorCube(0.5);
        scene.addChild(shape);
        universe.addBranchGraph(scene);
        universe.getViewingPlatform().setNominalViewingTransform(); 
    }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4084</commentid>
    <comment_count>1</comment_count>
    <who name="Harvey Harrison">harvey.harrison</who>
    <bug_when>2014-08-05 19:40:47 +0200</bug_when>
    <thetext>(In reply to comment #0)
&gt; It seems that some changes introduced to Java 7 cause that stereo is not
&gt; working. The same code using Canvas3D from Harvey&apos;s Java3D 1.6.0-pre9 works
&gt; properly on JRE 1.6 and on JRE 1.7 only one eye is rendered.
&gt; 
&gt; This was tested on platform: Linux 64-bit + Nvidia Quadro 6000 + 331.38
&gt; driver + current JOGL + Java 3D 1.6.0-pre9
&gt; 
&gt; 

I&apos;ve just received a pull request that I will merge into a -pre11 release
that hopefully will fix this issue.  Do you still have the testscase handy
for testing?

Harvey</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4091</commentid>
    <comment_count>2</comment_count>
    <who name="Bartosz Borucki">babor</who>
    <bug_when>2014-08-06 15:03:17 +0200</bug_when>
    <thetext>(In reply to comment #1)
&gt; (In reply to comment #0)
&gt; &gt; It seems that some changes introduced to Java 7 cause that stereo is not
&gt; &gt; working. The same code using Canvas3D from Harvey&apos;s Java3D 1.6.0-pre9 works
&gt; &gt; properly on JRE 1.6 and on JRE 1.7 only one eye is rendered.
&gt; &gt; 
&gt; &gt; This was tested on platform: Linux 64-bit + Nvidia Quadro 6000 + 331.38
&gt; &gt; driver + current JOGL + Java 3D 1.6.0-pre9
&gt; &gt; 
&gt; &gt; 
&gt; 
&gt; I&apos;ve just received a pull request that I will merge into a -pre11 release
&gt; that hopefully will fix this issue.  Do you still have the testscase handy
&gt; for testing?
&gt; 
&gt; Harvey

Harvey, I can easily test new improvements both in simplified testcases and in out application. In the meantime I&apos;ve double checked the described problem on J3D-pre8, pre9 and pre10 vs. Java 6, 7 and 8, and confirm the problem on all J3D versions so far with Java 7 and 8.
If you wish me to run some tests let me know where can I get the new J3D version. Should I use current GitHub contents?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4093</commentid>
    <comment_count>3</comment_count>
    <who name="Harvey Harrison">harvey.harrison</who>
    <bug_when>2014-08-07 23:45:45 +0200</bug_when>
    <thetext>I&apos;ve released 1.6.0-pre11, please test.

http://jogamp.org/deployment/java3d/1.6.0-pre11/

I&apos;ve also pushed out tags to github if you prefer to build from source...thanks
for testing!  Note that jogl version 2.2.0 is required for -pre11 (back out commit 8c020c06a4f552bb66edc72afdf2becba01df89c if you want to try with an earlier version of jogl)

Harvey</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>