Package com.jme3.scene

Examples of com.jme3.scene.CameraNode.attachChild()


    Material mat_asteroid = new Material(assetManager,
        "Common/MatDefs/Light/Lighting.j3md");
    mat_asteroid.setTexture("DiffuseMap", assetManager
        .loadTexture("spaceobject/station/platform/hull.jpg"));
    cube.setMaterial(mat_asteroid);
    ship.attachChild(cube);

    Spatial wall = assetManager
        .loadModel("spaceobject/station/platform/Towers.mesh.xml");
    Material mat_wall = new Material(assetManager,
        "Common/MatDefs/Light/Lighting.j3md");
View Full Code Here


    mat_wall.setTexture("DiffuseMap", assetManager
        .loadTexture("spaceobject/station/platform/city2.jpg"));
    mat_wall.setTexture("GlowMap", assetManager
        .loadTexture("spaceobject/station/platform/city2_glow.jpg"));
    wall.setMaterial(mat_wall);
    ship.attachChild(wall);

    // Spatial flight =
    // assetManager.loadModel("spaceobject/station/cube/Flight.mesh.xml");
    // flight.setMaterial(mat_wall);
    // ship.attachChild(flight);
View Full Code Here

    gate.setMaterial(mat_wall);
   
   
   
   
    ship.attachChild(center);
    ship.attachChild(gate);

    rootNode.attachChild(ship);

    // // Cylinder quad = new Cylinder(10, 10, 10f, 3f);
View Full Code Here

   
   
   
   
    ship.attachChild(center);
    ship.attachChild(gate);

    rootNode.attachChild(ship);

    // // Cylinder quad = new Cylinder(10, 10, 10f, 3f);
    // Quad quad = new Quad(10f, 10f);
View Full Code Here

    mat_character.setTexture("DiffuseMap", app.getAssetManager().loadTexture("character/male/male.png"));
    character.setMaterial(mat_character);
    Quaternion rotate = new Quaternion();
    rotate.fromAngleAxis(-FastMath.PI / 2, new Vector3f(1, 0, 0));
    character.setLocalRotation(rotate);
    characterNode.attachChild(character);
    app.getRootNode().attachChild(characterNode);

    System.out.println(cam.getDirection());
  }
View Full Code Here

    private Node createMachineNode() {
        Node machine = new Node("machine");

        Geometry table = new Geometry("table", new Box(600 / 2, 12.7f / 2, 600 / 2));
        table.setMaterial(roughAluminumTexture);
        machine.attachChild(table);
       
        Geometry pcb = new Geometry("pcb", new Box(20, 1.57f / 2, 20));
        pcb.setMaterial(pcbTexture);
        pcb.move(-100, 12.7f / 2 + 1.57f / 2, 100);
        machine.attachChild(pcb);
View Full Code Here

        machine.attachChild(table);
       
        Geometry pcb = new Geometry("pcb", new Box(20, 1.57f / 2, 20));
        pcb.setMaterial(pcbTexture);
        pcb.move(-100, 12.7f / 2 + 1.57f / 2, 100);
        machine.attachChild(pcb);

        Geometry yRailLeft = new Geometry("y_rail_left", new Box(6, 6, 600 / 2));
        yRailLeft.setMaterial(polishedStainlessTexture);
        yRailLeft.move(-300 + 6, 12.7f, 0);
        machine.attachChild(yRailLeft);
View Full Code Here

        machine.attachChild(pcb);

        Geometry yRailLeft = new Geometry("y_rail_left", new Box(6, 6, 600 / 2));
        yRailLeft.setMaterial(polishedStainlessTexture);
        yRailLeft.move(-300 + 6, 12.7f, 0);
        machine.attachChild(yRailLeft);

        Geometry yRailRight = new Geometry("y_rail_right", new Box(6, 6, 600 / 2));
        yRailRight.setMaterial(polishedStainlessTexture);
        yRailRight.move(300 - 6, 12.7f, 0);
        machine.attachChild(yRailRight);
View Full Code Here

        machine.attachChild(yRailLeft);

        Geometry yRailRight = new Geometry("y_rail_right", new Box(6, 6, 600 / 2));
        yRailRight.setMaterial(polishedStainlessTexture);
        yRailRight.move(300 - 6, 12.7f, 0);
        machine.attachChild(yRailRight);

        Node gantry = createGantryNode();
        gantry.move(0, 50 / 2 + 12.7f + 6, 0);
        machine.attachChild(gantry);;
View Full Code Here

    private Node createGantryNode() {
        Node gantry = new Node("gantry");

        Geometry gantryTube = new Geometry("gantry_tube", new Box(600 / 2, 50 / 2, 50 / 2));
        gantryTube.setMaterial(brushedAluminumTexture);
        gantry.attachChild(gantryTube);

        Geometry xRail = new Geometry("x_rail", new Box(600 / 2, 12 / 2, 12 / 2));
        xRail.setMaterial(polishedStainlessTexture);
        xRail.move(0, 0, 25 + 6);
        gantry.attachChild(xRail);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.