Examples of updateModelBound()


Examples of com.jme.scene.Line.updateModelBound()

        regularGrid.updateModelBound();
        lines.attachChild(regularGrid);
        Geometry markerGrid = new Line("markerLine", markerVertices.toArray(new Vector3f[] {}), null, null, null);
        markerGrid.getDefaultColor().set(new ColorRGBA(1, 1, 1, 0.1f));
        markerGrid.setModelBound(new BoundingBox());
        markerGrid.updateModelBound();
        lines.attachChild(markerGrid);
        if (rotation != null) lines.getLocalRotation().fromAngles(rotation.x, rotation.y, rotation.z);

        Node axis = new Node("axis");
        this.attachChild(axis);
View Full Code Here

Examples of com.jme.scene.Line.updateModelBound()

        lx.setModelBound(new BoundingBox());
        lx.updateModelBound();
        ly.setModelBound(new BoundingBox());
        ly.updateModelBound();
        lz.setModelBound(new BoundingBox());
        lz.updateModelBound();
        axis.attachChild(lx);
        axis.attachChild(ly);
        axis.attachChild(lz);

        TextureState ts = DisplaySystem.getDisplaySystem().getRenderer().createTextureState();
View Full Code Here

Examples of com.jme.scene.Line.updateModelBound()

    }

    Line l = new Line("Line Group", vertex, null, color, null);
    l.setMode(Line.CONNECTED);
    l.setModelBound(new BoundingBox());
    l.updateModelBound();
    l.setLightCombineMode(LightState.OFF);
     
      trajectoryLine.removeFromParent();
      trajectoryLine = l;   
      this.trajectoryNode.attachChild(trajectoryLine);
View Full Code Here

Examples of com.jme.scene.Line.updateModelBound()

    }

    Line l = new Line("Line Group", vertex, null, color, null);
    l.setMode(Line.CONNECTED);
    l.setModelBound(new BoundingBox());
    l.updateModelBound();
    l.setLightCombineMode(LightState.OFF);
     
      trajectoryLine.removeFromParent();
      trajectoryLine = l;   
      this.trajectoryNode.attachChild(trajectoryLine);
View Full Code Here

Examples of com.jme.scene.Node.updateModelBound()

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

        ret.setModelBound(new BoundingSphere());
        ret.updateModelBound();

        return ret;
    }

}
View Full Code Here

Examples of com.jme.scene.Node.updateModelBound()

        // the cell renderer root entity and turn on input.
        Node externalRoot = avatarCharacter.getJScene().getExternalKidsRoot();
        if (nameTagNode!=null) {
            externalRoot.attachChild(nameTagNode);
            externalRoot.setModelBound(new BoundingSphere());
            externalRoot.updateModelBound();
            externalRoot.updateGeometricState(0, true);
        }
        rootEntity.addEntity(avatarCharacter);

        // Turn on input handle for the renderer, if we wish. Check for AvatarCell
View Full Code Here

Examples of com.jme.scene.SharedMesh.updateModelBound()

                ms.setDiffuse(new ColorRGBA(r.nextInt(100) * 0.01f, r.nextInt(100) * 0.01f, r.nextInt(100) * 0.01f, (r.nextInt(40) + 60) * 0.01f));
            } else {
                ms.setDiffuse(new ColorRGBA(r.nextInt(100) * 0.01f, r.nextInt(100) * 0.01f, r.nextInt(100) * 0.01f, 1));
            }
            sharedMesh.setRenderState(ms);
            sharedMesh.updateModelBound();
            //sharedMesh.lock();
            subNode[index].attachChild(sharedMesh);
        }
        //Line line = new Line("line" , linesPoint.toArray(new Vector3f[linesPoint.size()]),null,null,null);
        //line.setMode(Line.Mode.Connected);
View Full Code Here

Examples of com.jme.scene.Spatial.updateModelBound()

        if (selectedForInput) {      
            Spatial collisionGraph = new Sphere("AvatarCollision", origin, 10, 10, radius);
           
            collisionGraph.setModelBound(new BoundingBox());
            collisionGraph.updateModelBound();

            // Fetch the JME Collision system using the server manager of the Cell
            // to which this renderer is attached.
            ServerSessionManager manager =
                    cell.getCellCache().getSession().getSessionManager();
View Full Code Here

Examples of com.jme.scene.TriMesh.updateModelBound()

    TriMesh mesh = new TriMesh();
    TextureState ts = DisplaySystem.getDisplaySystem().getRenderer().createTextureState();
    ts.setTexture(texture);
    mesh.setRenderState(ts);
    mesh.setModelBound(new BoundingBox());
    mesh.updateModelBound();
    faces[i] = mesh;
    attachChild(mesh);
      }
  }
View Full Code Here

Examples of com.jme.scene.TriMesh.updateModelBound()

              null, null,BufferUtils.createIntBuffer(indexes));
     
     
     
      mesh.setModelBound(new BoundingBox());
      mesh.updateModelBound();
     
      tankNode = new Node("TankNode");
      tankTurret = new Node("tankTurret");
        tankTurretBarrel = new Cylinder("tankTurretBarrel", 16, 16, .1f, BARREL_LENGTH );
        tankTurretBarrel.setModelBound(new BoundingBox());
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.