This discussion is archived
1 Reply Latest reply: May 10, 2011 11:44 PM by LeW RSS

java 3d (1.5, 1.5.1,1.5.2) funny problems

859664 Newbie
Currently Being Moderated
Hi, i meet following interestting and funny things when i use Java 3d 1.5.
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. i need urgent help。

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.
  • 1. Re: java 3d (1.5, 1.5.1,1.5.2) funny problems
    LeW Newbie
    Currently Being Moderated
    1)
    do you run via direct3d or via openGL (default option)?..
    as I know direct3d don't support such options like linewidth or pattern.

    try run with these options, do you see any the difference?

    java -Dj3d.rend=d3d myJavaApp
    java -Dj3d.rend=ogl myJavaApp

    2)
    problem can be in your current workstation environment..do you tried on another workstations?
    also you can prepare simple test case of your problem and post it here, people can try run and test it on their own environments.

    p.s.:
    I using Java3D 1.5.2 on WinXP, and things like "lineAttrib.setLinePattern(LineAttributes.PATTERN_DOT);" works for me if I run via openGL

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points