Examples of toIndicesArray()


Examples of com.ngt.jopenmetaverse.shared.sim.rendering.mesh.Face.toIndicesArray()

    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);
   
    UUID[] textureIds = new UUID[] { sim.TerrainDetail0, sim.TerrainDetail1, sim.TerrainDetail2, sim.TerrainDetail3 };
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.