4 Replies Latest reply: May 11, 2011 1:52 AM by LeW RSS

    about Java 3d 1.5

    859664
      Hi, i meet following interestting and funny things when i use Java 3d.
      in java 3d 1.4,this part of Java 3d program is OK.
      "....
      LineArray lines=new LineArray(8,LineArray.COORDINATES|LineArray.COLOR_3);
           lines.setCoordinates(0,vertexes);
           lines.setColors(0,colors);
           LineAttributes lineattributes=new LineAttributes();
           lineattributes.setLineWidth(15.f);
           lineattributes.setLineAntialiasingEnable(true);
           lineattributes.setLinePattern(LineAttributes.PATTERN_DASH);
           Appearance app=new Appearance();
           app.setLineAttributes(lineattributes);
           shapelines0.setGeometry(lines);
           shapelines0.setAppearance(app);
      ...
      "
      but in java 3d 1.5, 1.5.1,1.5.2,the three clauses "lineattributes.setLineWidth(15.f);
           lineattributes.setLineAntialiasingEnable(true);
           lineattributes.setLinePattern(LineAttributes.PATTERN_DASH);
      " do not function.
      I do not know why? I always try to solve this problems,but no answer yet.
        • 1. Re: about Java 3d 1.5
          InteractiveMesh
          Hi,

          I have no problems concerning line attributes (antialiasing, pattern, width) while running my applications on Java 3D 1.5.x as long as I run them on the OpenGL pipeline. Direct3D doesn't support line pattern and width!

          Did you change anything else in your program when you switched to 1.5.x?

          Please, chek out the sample program 'String3D Outline' on http://www.interactivemesh.org/testspace/awtshapeextruder.html and test it in your environment.

          August
          • 2. Re: about Java 3d 1.5
            859664
            how to know which is OpenGL pipeline,which is Direct3d?thank you!
            • 3. Re: about Java 3d 1.5
              859664
              my system is Vista,JDK1.6, Java Creator LE4.graphics cards are ATI Mobility Radeon HD 3400 series and Mobile Intel(R) series express chipset family which can swith automaticaly.do not change any things. if i install Java 3d 1.4, everythings is OK.but if i remove Java 3d1.4 and install java 3d 1.5,this problem occure.
              • 4. Re: about Java 3d 1.5
                LeW
                +"+
                +Please, chek out the sample program 'String3D Outline' on http://www.interactivemesh.org/testspace/awtshapeextruder.html and test it in your environment.+
                +"+

                do you tried the sample and got result looks like exactly the same as in screenshot?