Package com.ardor3d.scenegraph.shape

Examples of com.ardor3d.scenegraph.shape.Dome


        addMesh(new Capsule("Capsule", 5, 5, 5, 2, 5));
        addMesh(new Cone("Cone", 8, 8, 2, 4));
        addMesh(new Cylinder("Cylinder", 8, 8, 2, 4));
        addMesh(new Disk("Disk", 8, 8, 3));
        addMesh(new Dodecahedron("Dodecahedron", 3));
        addMesh(new Dome("Dome", 8, 8, 3));
        addMesh(new Hexagon("Hexagon", 3));
        addMesh(new Icosahedron("Icosahedron", 3));
        addMesh(new MultiFaceBox("MultiFaceBox", new Vector3(), 3, 3, 3));
        addMesh(new Octahedron("Octahedron", 3));
        addMesh(new PQTorus("PQTorus", 5, 4, 1.5, .5, 128, 8));
View Full Code Here


        addMesh(new Capsule("Capsule", 5, 5, 5, 2, 5));
        addMesh(new Cone("Cone", 8, 8, 2, 4));
        addMesh(new Cylinder("Cylinder", 8, 8, 2, 4));
        addMesh(new Disk("Disk", 8, 8, 3));
        addMesh(new Dodecahedron("Dodecahedron", 3));
        addMesh(new Dome("Dome", 8, 8, 3));
        addMesh(new Hexagon("Hexagon", 3));
        addMesh(new Icosahedron("Icosahedron", 3));
        addMesh(new MultiFaceBox("MultiFaceBox", new Vector3(), 3, 3, 3));
        addMesh(new Octahedron("Octahedron", 3));
        addMesh(new PQTorus("PQTorus", 5, 4, 1.5, .5, 128, 8));
View Full Code Here

        return floor;
    }

    private Mesh createSky() {
        final Dome sky = new Dome("Sky", 30, 30, 10);
        sky.updateModelBound();
        // set the vertex colors to red. Same effect as setDefaultColor here, but uses more memory.
        sky.setSolidColor(ColorRGBA.RED);
        // move back from camera.
        sky.setTranslation(0, 10, -20);

        // Add a material state
        final MaterialState ms = new MaterialState();
        sky.setRenderState(ms);
        // Pull diffuse color for front from mesh color
        ms.setColorMaterial(ColorMaterial.Diffuse);
        ms.setColorMaterialFace(MaterialFace.Front);
        // Set shininess for front and back
        ms.setShininess(MaterialFace.FrontAndBack, 100);
View Full Code Here

TOP

Related Classes of com.ardor3d.scenegraph.shape.Dome

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.