-
Notifications
You must be signed in to change notification settings - Fork 19
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
UV Mapping fails in modern versions of Three.js #5
Comments
@bnolan what version of three.js, can you narrow down when it first broke? Works with at least 0.58.9 and 0.56.0 (version used by voxel-engine 0.20.1) |
Tested myself, works on 0.58.10, broken on 0.66.2 (there is a gap between these versions for three.js on NPM, didn't test in between), I suspect this is related to this change: https://github.com/mrdoob/three.js/wiki/Migration
which also broke max-mapper/voxel-mesh#13 .. but minecraft-skin does not explicitly use Face4 (quads). Found this hint on http://solutiondesign.com/webgl-and-three-js-texture-mapping/:
I'd guess CubeGeometry changed from using |
I came across this issue as well. Here is my working update to a single function to make it work again:
Untested on older versions of Three |
I've just tried this out with a modern version of Three.js and got an error around line 142...
I'm guessing the mesh building code has changed in three.js and it breaks the UVs somehow - but I don't really know what I'm doing so I couldn't work out how to fix it. :( It still works if you disable uv mapping, but then the man obviously looks retarded.
The text was updated successfully, but these errors were encountered: