Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Aug 7, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

Hi, i got it: 

mesh.compiled = null;

THX anyway

Original comment by [email protected] on 7 Jun 2015 at 4:05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant