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

How to set camera look at selected mesh? #35

Open
OrangeOlko opened this issue Nov 28, 2017 · 2 comments
Open

How to set camera look at selected mesh? #35

OrangeOlko opened this issue Nov 28, 2017 · 2 comments

Comments

@OrangeOlko
Copy link

OrangeOlko commented Nov 28, 2017

Hello, thanks for your great work!

Could you please advise how to rotate model to desired mesh?
I use viewer with Three.

I only saw in code few predefined cameras.
Direct call to .camera.lookAt(mesh.position) does nothing.

Thanks in advance

@OrangeOlko OrangeOlko changed the title How to set camera loo at selected mesh? How to set camera look at selected mesh? Nov 28, 2017
@kovacsv
Copy link
Owner

kovacsv commented Nov 17, 2018

Hello!

I know this is an old question, but I'm still inside one year :)

Here is an example on how to do this:
https://rawgit.com/kovacsv/JSModeler/development/sandbox/camerapos.html

@OrangeOlko
Copy link
Author

Hello,

This question is still actual:)
Thank you!

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

2 participants