Examples of updateBound()


Examples of com.jme3.scene.Mesh.updateBound()

        m.setBuffer(Type.Position, 3, BufferUtils.createFloatBuffer(verts));
        m.setBuffer(Type.Normal, 3, BufferUtils.createFloatBuffer(sqrNormals));
        m.setBuffer(Type.Index, 1, BufferUtils.createIntBuffer(sqrIndexes));
        m.setMode(Mode.Lines);
        m.updateCounts();
        m.updateBound();

        g = new Geometry("Face(" + verts[0] + ", " + verts[1]
                + ", " + verts[2] + ", " + verts[3] + ")", m);
        g.updateModelBound();
View Full Code Here

Examples of com.jme3.scene.Mesh.updateBound()

        m.setBuffer(Type.Position, 3, BufferUtils.createFloatBuffer(vertices));
        m.setBuffer(Type.Normal, 3, BufferUtils.createFloatBuffer(normals));
        m.setBuffer(Type.Index, 1, BufferUtils.createIntBuffer(indexes));
        m.setMode(Mode.Lines);
        m.updateCounts();
        m.updateBound();

        g = new Geometry("Box" + extent, m);
        g.updateModelBound();

        return g;
View Full Code Here

Examples of com.jme3.scene.Mesh.updateBound()

        mesh.setBuffer(Type.Normal, 3, s.getNormals());
        mesh.setBuffer(Type.Tangent, 4, s.getTangents());
        mesh.setBuffer(Type.Binormal, 3, s.getBinormals());
        mesh.setBuffer(Type.TexCoord, 2, s.getTexCoords());

        mesh.updateBound();

        Geometry g = new Geometry("VoxelGeometry", mesh);

        return g;
    }
View Full Code Here

Examples of com.jme3.scene.Mesh.updateBound()

        mesh.setBuffer(Type.Normal, 3, s.getNormals());
        mesh.setBuffer(Type.Tangent, 4, s.getTangents());
        mesh.setBuffer(Type.Binormal, 3, s.getBinormals());
        mesh.setBuffer(Type.TexCoord, 2, s.getTexCoords());

        mesh.updateBound();

        Geometry g = new Geometry("VoxelGeometry", mesh);

        return g;
    }
View Full Code Here

Examples of com.jme3.scene.shape.Quad.updateBound()

   
      camera.setLocation(new Vector3f(0,0,0))
   
    Singleton.get().getSceneManager().removeAll();
      Quad b = new Quad(80f,60f);
      b.updateBound();
      Geometry geom = new Geometry("backdrop", b);
      Material mat = new Material(Singleton.get().getAssetManager().getJmeAssetMan(), "Common/MatDefs/Misc/Unshaded.j3md");
      mat.setTexture("ColorMap", Singleton.get().getAssetManager().getJmeAssetMan().loadTexture("start/backdrop.png"));
      geom.setMaterial(mat);
      geom.setLocalTranslation(-40f, -30f, -90f);     
View Full Code Here

Examples of com.jme3.scene.shape.Quad.updateBound()

      geom.setMaterial(mat);
      geom.setLocalTranslation(-40f, -30f, -90f);     
      Singleton.get().getSceneManager().changeTerrainNode(geom,Action.ADD);
     
      Quad b2 = new Quad(38f,29f);
      b2.updateBound();
      Geometry geom2 = new Geometry("wolf", b2);
      Material mat2 = new Material(Singleton.get().getAssetManager().getJmeAssetMan(), "Common/MatDefs/Misc/Unshaded.j3md");
      mat2.setTexture("ColorMap", Singleton.get().getAssetManager().getJmeAssetMan().loadTexture("start/wolf.png"));
      mat2.getAdditionalRenderState().setBlendMode(BlendMode.Alpha); // activate transparency
      geom2.setMaterial(mat2);
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.