Hi all,
I work with MS win and this code don't return a transparent
Line!!
What's the problem?
Appearance app1 = new Appearance();TransparencyAttributes transp = new TransparencyAttributes();transp.setTransparency( 0.5f);transp.setCapability(TransparencyAttributes.ALLOW_MODE_WRITE); transp.setTransparencyMode(TransparencyAttributes.SCREEN_DOOR); app1.setTransparencyAttributes(transp); Color3f lColor1 = new Color3f(1.0f, 0.0f, 0.0f);Color3f lColor2 = new Color3f(0.05f, 0.05f, 0.4f);LineArray axisXLines = new LineArray(2, LineArray.COORDINATES | LineArray.COLOR_3 );objRotate.addChild( new Shape3D(axisXLines));axisXLines.setCoordinate( 0, new Point3f(-1.0f, 0.0f, 0.0f));axisXLines.setCoordinate( 1, new Point3f( 1.0f, 0.0f, 0.0f));axisXLines.setColor( 0,lColor2);axisXLines.setColor( 1,lColor2);Shape3D shape = new Shape3D(axisXLines, app1);shape.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE); shape.setCapability(Shape3D.ALLOW_GEOMETRY_READ); Gianni
|
- Re: [JAVA3D] What's the problem?? Gianni Riccio
- Re: [JAVA3D] What's the problem?? Kevin Rushforth