Examples of Teapot


Examples of com.ardor3d.scenegraph.shape.Teapot

        final Quad floor = new Quad("floor", 100, 100);
        floor.setRotation(new Matrix3().fromAngleNormalAxis(MathUtils.HALF_PI, Vector3.UNIT_X));
        _root.attachChild(floor);

        final Teapot teapot = new Teapot("teapot");
        teapot.setScale(5);
        _root.attachChild(teapot);

        // Add a clip state to the scene.
        final ClipState cs = new ClipState();
        cs.setEnableClipPlane(0, true);
View Full Code Here

Examples of com.ardor3d.scenegraph.shape.Teapot

        addMesh(new Quad("Quad", 3, 3));
        addMesh(new RoundedBox("RoundedBox", new Vector3(3, 3, 3)));
        addMesh(new Sphere("Sphere", 16, 16, 3));
        addMesh(new GeoSphere("GeoSphere", true, 3, 3, TextureMode.Original));
        addMesh(new StripBox("StripBox", new Vector3(), 3, 3, 3));
        addMesh(new Teapot("Teapot"));
        addMesh(new Torus("Torus", 16, 8, 1.0, 2.5));
        addMesh(new Tube("Tube", 2, 3, 4));

        final TextureState ts = new TextureState();
        ts.setTexture(TextureManager.load("images/ardor3d_white_256.jpg", Texture.MinificationFilter.Trilinear,
View Full Code Here

Examples of com.ardor3d.scenegraph.shape.Teapot

        final Quad floor = new Quad("floor", 100, 100);
        floor.setRotation(new Matrix3().fromAngleNormalAxis(MathUtils.HALF_PI, Vector3.UNIT_X));
        _root.attachChild(floor);

        final Teapot teapot = new Teapot("teapot");
        teapot.setScale(5);
        _root.attachChild(teapot);

        // Add a texture to the scene.
        final TextureState ts = new TextureState();
        projectedTexture = TextureManager.load("images/ardor3d_white_256.jpg", Texture.MinificationFilter.Trilinear,
View Full Code Here

Examples of com.ardor3d.scenegraph.shape.Teapot

        addMesh(new Quad("Quad", 3, 3));
        addMesh(new RoundedBox("RoundedBox", new Vector3(3, 3, 3)));
        addMesh(new Sphere("Sphere", 16, 16, 3));
        addMesh(new GeoSphere("GeoSphere", true, 3, 3, TextureMode.Original));
        addMesh(new StripBox("StripBox", new Vector3(), 3, 3, 3));
        addMesh(new Teapot("Teapot"));
        addMesh(new Torus("Torus", 16, 8, 1.0, 2.5));
        addMesh(new Tube("Tube", 2, 3, 4));
        addMesh(createLines());

        final TextureState ts = new TextureState();
View Full Code Here

Examples of com.ardor3d.scenegraph.shape.Teapot

        box.setModelBound(new BoundingBox());
        box.setTranslation(new Vector3(-3, 0, 0));
        box.setRandomColors();
        node.attachChild(box);

        final Teapot teapot = new Teapot("Teapot");
        teapot.setScale(2.0);
        teapot.setTranslation(new Vector3(3, 0, 0));
        node.attachChild(teapot);

        final Torus torus = new Torus("Torus", 128, 128, 2, 4);
        torus.setTranslation(new Vector3(-8, 3, 0));
        node.attachChild(torus);
View Full Code Here

Examples of com.ardor3d.scenegraph.shape.Teapot

        _camera.setEyeSeparation(_camera.getFocalDistance() / 30.0);
        _camera.setAperture(45.0 * MathUtils.DEG_TO_RAD);
        _camera.setSideBySideMode(_sideBySide);
        _camera.setupLeftRightCameras();

        final Mesh tp = new Teapot("Teapot");
        tp.setModelBound(new BoundingBox());
        tp.setTranslation(new Vector3(0, 0, -50));
        tp.setScale(2);
        _root.attachChild(tp);

        final Mesh torus = new Torus("Torus", 16, 16, 1, 4);
        torus.setModelBound(new BoundingBox());
        torus.setTranslation(new Vector3(4, 0, -10));
View Full Code Here

Examples of com.ardor3d.scenegraph.shape.Teapot

        final Quad quad = new Quad("Quad");
        quad.resize(150, 120);
        quad.updateModelBound();
        quad.setRenderState(bgts);

        final Teapot teapot = new Teapot();
        teapot.setScale(20);
        teapot.updateModelBound();
        teapot.setRandomColors();

        final Mesh multiStrip = createMultiStrip();
        multiStrip.updateModelBound();
        multiStrip.setTranslation(0, 0, -30);
View Full Code Here

Examples of com.jme.scene.shape.Teapot

            ColorRGBA color) {
        MaterialState matState = null;
       
        // The center teapot
        Node ret = new Node();
        Teapot teapot = new Teapot();
        teapot.resetData();
        teapot.setLocalScale(0.2f);
        ret.attachChild(teapot);

        matState = (MaterialState) ClientContextJME.getWorldManager().getRenderManager().createRendererState(RenderState.RS_MATERIAL);
        matState.setDiffuse(color);
        ret.setRenderState(matState);
View Full Code Here

Examples of com.jme.scene.shape.Teapot

      TankGame.GAME.unlock();
      return tank;
    } else if (scm instanceof TeapotSynchronizeCreateMessage) {
      System.out.println("TeapotSyncMsg");
      TeapotSynchronizeCreateMessage msg = (TeapotSynchronizeCreateMessage) scm;
      Teapot teapot = msg.getTeapot();
     
      TankGame.GAME.lock();
      TankGame.GAMESTATE.getRoot().attachChild(teapot);
      TankGame.GAMESTATE.getRoot().updateGeometricState(0, true);
      teapot.setRenderQueueMode(Renderer.QUEUE_OPAQUE);
      TankGame.GAMESTATE.getRoot().updateRenderState();
      TankGame.GAME.unlock();
      return teapot;
    } else if (scm instanceof PhysicsFireableSynchronizeCreateMessage) {
      System.out.println("PhysicsFireableSyncMsg");
View Full Code Here

Examples of com.jme.scene.shape.Teapot

    detonate(vector);
  }
 
  @Override
  public void detonate(Ray vector) {
    final Teapot teapot = new Teapot("killer teapot");
    TankGame.GAME.lock();
    TankGame.GAMESTATE.getRoot().attachChild(teapot);
    teapot.updateRenderState();
    teapot.setModelBound(new BoundingBox());
    teapot.updateModelBound();
    teapot.updateWorldBound();
   
    teapot.setLocalTranslation(vector.origin);
    TankGame.GAME.unlock();
   
    //remove teapot after 5 seconds
    new Thread() {
      public void run() {
        try {
          Thread.sleep(5*1000);
        } catch (InterruptedException e) {}
        TankGame.NETWORK.unregister(teapot);
        TankGame.GAME.lock();
        teapot.removeFromParent();
        TankGame.GAME.unlock();
      }
    }.start();
   
    try {
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.