Package javax.media.j3d

Examples of javax.media.j3d.LinearFog


/* 102 */     st.pushBack();
/*     */   }
/*     */
/*     */   void createJava3dObject()
/*     */   {
/* 117 */     this.fogObject = new LinearFog(this.color, this.minDist, this.maxDist);
/* 118 */     debugOutputLn(2, "just set linearFog with color, minDist, maxDist = " + this.color + ", " + this.minDist + ", " + this.maxDist);
/*     */
/* 123 */     BoundingSphere bounds = new BoundingSphere(new Point3d(0.0D, 0.0D, 0.0D), 100000.0D);
/* 124 */     this.fogObject.setInfluencingBounds(bounds);
/*     */   }
View Full Code Here


/* 66 */     ((LinearFog)this.node).setBackDistance(in.readDouble());
/* 67 */     ((LinearFog)this.node).setFrontDistance(in.readDouble());
/*    */   }
/*    */
/*    */   protected SceneGraphObject createNode() {
/* 71 */     return new LinearFog();
/*    */   }
View Full Code Here

    }

    private void buildLevel() {
        final BoundingSphere bounds = new BoundingSphere(new Point3d(),
                Double.MAX_VALUE);
        final LinearFog fog = new LinearFog(0f, 0f, 0f, 3f, 5f);
        fog.setInfluencingBounds(bounds);
        branchGroup.addChild(fog);

        for (int z = 0; z < LENGTH; ++z) {
            for (int x = 0; x < LENGTH; ++x) {
                switch (maze[z][x]) {
View Full Code Here

TOP

Related Classes of javax.media.j3d.LinearFog

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.