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
The coordinate system problem of blender to three.js #10111
Comments
And what about three.js r82 ? Same problem ? |
Commenting here to say I've noticed similar behavior in specifically similar circumstances - namely upon importing a sphere from Blender and trying to illuminate it. Both DirectionalLight and PointLight yielded surprisingly counterintuitive and seemingly wrong results. I ended up working around the anomaly (code here, live here) but the issue is definitely there. Hope someone has an illuminating thought about it. |
I got an 404 error for second (live) link. And what about the blender export, as json object, right ? And did you try with an .obj export if you got the same behavior (this could be a work around waiting fix). For me the first thing that came up, is flipped normal (means inside the sphère, so try to flit normal before exporting your json) and give me a feedback. |
Here are some test results: 【io_three before version 76】 【io_three "all versions" after 77 include 82】 |
not sure if this is the same issue, but I solved similar to this by changing a line in one of the blender -> threejs exporter files: in exporter/api/mesh.py change line 619 from: |
@zydecode would you like to do a Pull Request with the fix? |
I'm happy to, as it immediately solved the issues we were having, and I just hope that the vectors were not as they were to solve another issue.. Cheers, Sean On 11/16/2016 10:57 PM, Mr.doob wrote:
|
@zydecode It does work! Thank you. |
@iceleaf97 A pull request for this change was created (#10155) and has since been merged; if that fixes the problem, perhaps this issue can be closed? |
(*** This section is for bug reports and feature requests only. This is NOT a help site. Do not ask help questions here. If you need help, please use stackoverflow. ***)
Description of the problem
In this three.js scene, I put my camera at (0, 0, 80) and put a directionalLight at ( 50, 50, 50 ). Then, I create a white sphere geometry (the left sphere) and load a json model from blender (the right sphere). However, the scene showed on the screen looks weird. The directional light project on the wrong surface of the json model. It seems the problem of the coordinate system.
two sphere
The version I use is that Blender v2.78 and three.js r80
Three.js version
Browser
OS
Hardware Requirements (graphics card, VR Device, ...)
The text was updated successfully, but these errors were encountered: