vsinghp / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 azzolini...@gmail.com on 6 Jun 2015 at 12:45

GoogleCodeExporter commented 8 years ago
Hi, i got it: 

mesh.compiled = null;

THX anyway

Original comment by azzolini...@gmail.com on 7 Jun 2015 at 4:05