Package javax.media.j3d

Examples of javax.media.j3d.TransparencyInterpolator


        base.setMaterial(new Material(color, C.black, color, C.white, 64.0f));
        base.setPolygonAttributes(C.noCull);
        TransparencyAttributes ta = new TransparencyAttributes(TransparencyAttributes.BLENDED, alpha);
        ta.setCapability(TransparencyAttributes.ALLOW_VALUE_WRITE);
        base.setTransparencyAttributes(ta);
        TransparencyInterpolator ti = new TransparencyInterpolator(C.halfAlpha, ta, alpha, .97f);
        ti.setSchedulingBounds(BoardModel.bounds);
        addChild(ti);

        Cylinder link = new Cylinder(1.5f, (float)source.distance(destination));
        link.setAppearance(base);
View Full Code Here


/*  96 */     return createNode(j3dClass, new Class[] { Alpha.class, TransparencyAttributes.class }, new Object[] { null, null });
/*     */   }
/*     */
/*     */   protected SceneGraphObject createNode()
/*     */   {
/* 103 */     return new TransparencyInterpolator(null, null);
/*     */   }
View Full Code Here

TOP

Related Classes of javax.media.j3d.TransparencyInterpolator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.