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

I expect have a controls can support zoomed and rotated with the current mouse position in screen #19599

Closed
liuyehua opened this issue Jun 9, 2020 · 11 comments

Comments

@liuyehua
Copy link

liuyehua commented Jun 9, 2020

such as navisworks viewer behavior。。。

@WestLangley
Copy link
Collaborator

Do you mean #17145? It zooms to cursor, but rotates around center -- not the projected cursor position.

@liuyehua
Copy link
Author

liuyehua commented Jun 9, 2020

Do you mean #17145? It zooms to cursor, but rotates around center -- not the projected cursor position.

yes...this question some example google can find all have rotate problem... I feel it is very difficult for me to realize this function...

@WestLangley
Copy link
Collaborator

all have rotate problem

Sorry, I do not understand what rotation behavior you want. A video would be helpful.

@liuyehua
Copy link
Author

liuyehua commented Jun 9, 2020

all have rotate problem

Sorry, I do not understand what rotation behavior you want. A video would be helpful.

https://api.bimface.com/preview/16442f9e ,such as this site you will find you can make current mouse cursor position in screen as zoom and rotate‘s center.

The autodesk's navisworks is the same logic。。。

@liuyehua
Copy link
Author

liuyehua commented Jun 9, 2020

all have rotate problem

Sorry, I do not understand what rotation behavior you want. A video would be helpful.

the orbitcontrols rotate target always in the center of screen,

all have rotate problem

Sorry, I do not understand what rotation behavior you want. A video would be helpful.

such as obrit controls the rotation center always in the center of screen, it have many problems when I want to zoom by the mouse cursor position。。。

@WestLangley
Copy link
Collaborator

Sorry, I find the rotation behavior in https://api.bimface.com/preview/16442f9e very confusing.

Zooming to cursor makes sense to me; rotating around the cursor does not. Maybe someone else has a different opinion...

@marquizzo
Copy link
Contributor

I'm with @WestLangley on this one. Rotating around the cursor is very un-intuitive and can quickly move the model off-screen, making it difficult to bring it back on.

rotate

@WestLangley
Copy link
Collaborator

The autodesk's navisworks is the same logic

This video explains how zooming and rotating work in Navisworks: https://youtu.be/9CAoruSqA4A?t=78

A "pivot point" is set using a raycaster-like feature.

I do not see three.js implementing an API like that.

@liuyehua
Copy link
Author

liuyehua commented Jun 9, 2020

The autodesk's navisworks is the same logic

This video explains how zooming and rotating work in Navisworks: https://youtu.be/9CAoruSqA4A?t=78

A "pivot point" is set using a raycaster-like feature.

I do not see three.js implementing an API like that.

yes...The other important feature is you can directly zoom in or out at your mouse position ,and the orbit controls you must use mouse right button move the you want scene to the screen center。。。

@Mugen87
Copy link
Collaborator

Mugen87 commented Jun 10, 2020

The other important feature is you can directly zoom in or out at your mouse position

But this should be implemented via #17145.

@Mugen87
Copy link
Collaborator

Mugen87 commented Jun 12, 2020

Closing. I think it makes senes to focus on #17145 in order to bring "zoom-to-cursor" in production.

@Mugen87 Mugen87 closed this as completed Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants