Package com.ngt.jopenmetaverse.shared.sim.rendering.mesh

Examples of com.ngt.jopenmetaverse.shared.sim.rendering.mesh.MeshmerizerR


   
  public SceneWindow(GridClient Client)
  {
    this.Client = Client;
    terrainThreadPool = ThreadPoolFactory.getNewInstance(2, 20, 1, TimeUnit.SECONDS, 100);
        renderer = new MeshmerizerR();
        EventObserver<LandPatchReceivedEventArgs> landPatchReceivedHandler  = new EventObserver<LandPatchReceivedEventArgs>()
            {
          @Override
          public void handleEvent(Observable sender,
              LandPatchReceivedEventArgs arg) {
View Full Code Here


 
  public void updateTerrain() throws Exception
  {   
    Simulator sim = client.network.getCurrentSim();
    heightMap = TerrainHelper.createHeightTable(sim.Terrain, heightMap);
    MeshmerizerR renderer = new MeshmerizerR();
    Face terrainFace = renderer.TerrainMesh(heightMap, 0f, 255f, 0f, 255f);
    ColorVertex[] terrainVertices = TerrainHelper.genColorVertices(terrainFace);
    newIndices = terrainFace.toIndicesArray();
    byte[] data = ColorVertex.toBytes(terrainVertices);
    newVertexVBO = new InterleavedVBO(data, ColorVertex.Size, 3, 3,
        2, 0, 12, 24);
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.sim.rendering.mesh.MeshmerizerR

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.