Skip to content

Mesh transformation working ok in canvas but not in webgl #160

@GoogleCodeExporter

Description

@GoogleCodeExporter
Hi,
any suggestions how to get something like that working also in webgl?

function moveMesh(mesh, X, Y, Z) {
  var mat = new JSC3D.Matrix3x4;
  if (mesh) {
    mat.translate(X, Y, Z);     
    JSC3D.Math3D.transformVectors(mat, mesh.vertexBuffer, mesh.vertexBuffer);
    mesh.calcAABB();
  } 
}

THX

/L

Original issue reported on code.google.com by [email protected] on 6 Jun 2015 at 12:45

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions