-
Notifications
You must be signed in to change notification settings - Fork 190
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 lookAt vector #16
Comments
Did you try the |
Curiously, I'm not getting a look_at call to the camera to work. It does seem to work with normal objects in the scene, however. Investigating.... |
Okay, turns out the camera look_at function is overridden by the OrbitControls target. So I just exposed the OrbitControls target value. So do something like:
or if you instead do something like Let me know if this works for you. |
(You'll have to pull the latest master to get that commit, of course) |
That works, thanks! I backported to a branch for IPython 3.1.0 and pushed it here: https://github.com/erdc-cm/pythreejs/tree/ipy3.1.0 |
Can you make a pull request? |
@cekees - I think jasongrout@f06441d may make the master branch compatible with IPython 3.1. If you have time, can you check to see if master now works with IPython 3.1? |
I am still not able to change camera angle from python. I have orbitcontroller and change its target position. Can anyone confirm it works or provide working example? |
@jasongrout, I'm having trouble pointing the camera to the centroid of my scene, so I get clunky behavior from the orbital controls. Is there a direct way I can set it? I believe it's the lookAt vector in three.js, but I don't see it exposed by pythreejs.
The text was updated successfully, but these errors were encountered: