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

Examples of com.ngt.jopenmetaverse.shared.sim.rendering.math.FloatMatrix


    this.indices = indices;
  }

  public void Render(RenderingContext renderingContext)
  {
    FloatMatrix totalMatrix = renderingContext.getResultingMatrix();
    floatBuffer.position(0);
    floatBuffer.put(totalMatrix.getColumnWiseFlatData()).position(0);
   
    GL20.glUniformMatrix4(renderingContext.getProjectionMatrixUniform(), false, floatBuffer);
   
    GL15.glBindBuffer(GL15.GL_ARRAY_BUFFER, vertexVBOId);
View Full Code Here


    // Prim roation and position and scale
    FloatMatrix4x4 srt4x4Matrix= Math3D.convertToFloatMatrix4x4(Math3D.CreateSRTMatrix(Prim.Scale, RenderRotation, RenderPosition));

    //    FloatMatrix totalMatrix = scene.getPerspectiveMatrix().multiply(scene.getTranslationMatrix()).multiply(scene.getRotationMatrix().multiply(srt2Matrix));
    FloatMatrix totalMatrix = scene.getResultingMatrix().multiply(srt4x4Matrix);
    floatBuffer.position(0);
    floatBuffer.put(totalMatrix.getColumnWiseFlatData()).position(0);

    GL20.glUniformMatrix4(scene.getProjectionMatrixUniform(), false, floatBuffer);


    // Do we have animated texture on this face
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.sim.rendering.math.FloatMatrix

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.