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

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


      texNextOffset+= texSize;
      vertexNextOffset += vertexSize;
      normalNextOffset += normalSize;
    }
   
    return new InterleavedVBO(data, stride, vertexSize/4, texSize/4,
        normalSize/4, vertexOffet, normalOffset, texOffset);
  }
View Full Code Here


    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);
   
    UUID[] textureIds = new UUID[] { sim.TerrainDetail0, sim.TerrainDetail1, sim.TerrainDetail2, sim.TerrainDetail3 };
    float[] startHeights = new float[] { sim.TerrainStartHeight00, sim.TerrainStartHeight01, sim.TerrainStartHeight10, sim.TerrainStartHeight11 };
    float[] heightRanges = new float[] { sim.TerrainHeightRange00, sim.TerrainHeightRange01, sim.TerrainHeightRange10, sim.TerrainHeightRange11 };
View Full Code Here

TOP

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

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.