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

Distortion when using Three.js while rotation #2456

Closed
zdavatz opened this issue Sep 27, 2012 · 5 comments
Closed

Distortion when using Three.js while rotation #2456

zdavatz opened this issue Sep 27, 2012 · 5 comments

Comments

@zdavatz
Copy link

zdavatz commented Sep 27, 2012

Hi

We are using Three.js for a rotating object, see:

http://pillbox.oddb.org/rotate_pillbox/rotate_pillbox.html

if you rotate the object with the mouse then the image becomes distorted / blurred. If you do not rotate the object, the image is not distorted and looks just fine.

The goal is of course to rotate the object freely in your Browser ;).

Is this a bug or is this a missing feature?

Thank you for your Feedback.

Best
Zeno

@WestLangley
Copy link
Collaborator

You can minimize the distortion significantly by tessellating the faces of your cube. In your case, that would be something like this:

THREE.CubeGeometry( 1358/4, 898/4, 508/4, 3, 3, 3, materials )

@zdavatz
Copy link
Author

zdavatz commented Sep 27, 2012

Thank you for the Tip! I just tried this. The distortion is far less now but it is still there. Should I be able to get rid of it 100%?

If I look at the box from the side, the distortion still happens.

Best
Zeno

@gero3
Copy link
Contributor

gero3 commented Sep 27, 2012

zdavatz if you are planning to only show that box then you can easily increase the subdivision to 10 or more without straining the clients PC;

  THREE.CubeGeometry( 1358/4, 898/4, 508/4, 10, 10, 10, materials )

@zdavatz
Copy link
Author

zdavatz commented Sep 27, 2012

Yes, I was just trying 9, 9, 9 that improves the distortion a lot. It seems that the rotation becomes less smooth, the higher the value.

Question: How can I get rid of that checkerboard pattern, that seems to get denser and denser the higher the value I use.

@mrdoob
Copy link
Owner

mrdoob commented Sep 27, 2012

#1979

@mrdoob mrdoob closed this as completed Sep 27, 2012
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

4 participants