Screen-door transparency doesn't work for lines or points. Try blended transparency.
-- Kevin Rushforth Java 3D Team Sun Microsystems [EMAIL PROTECTED] >Date: Tue, 20 Nov 2001 10:29:49 +0100 >From: Gianni Riccio <[EMAIL PROTECTED]> >Subject: [JAVA3D] What's the problem?? >To: [EMAIL PROTECTED] > >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 =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
