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
Custom camera orientation does not seem to work #207
Comments
This issue must be fixed in #183. |
It does not seemed to be fixed in #183 for me. The orientation of the camera in the mass_spring_damper should be such that the mass bobs up and down. |
@sahilshekhawat Would you mind looking into this issue. I don't think it is on the Python side. I haven't been able to find the bug yet in the JS. |
I am currently working on fixing issues with camera including this one. |
Okay, So I spent about one and a half day figuring out the reason and i still don't know.
then again quaternion's value is not changed.
which doesn't changes the value of transformation matrix from incorrect quaternions but then again trackballcontrols are not working due to that. |
@tarzzz Do you have any idea why this is not working? It used to work just fine (at least at the end of last summer). Sahil is going to file an issue on threejs about this. |
Instead of an issue, I have asked on stackoverflow: http://stackoverflow.com/questions/30818179/rotation-does-not-change-after-setting-transformation-matrix-for-camera |
When the frame is rotated 90degrees with
but rotating w.r.t to |
@sahilshekhawat What is the status here? Has the SO question and Tarun's observation helped figure out anything? If we can't get this into the release, we may need to disable the ability to orient cameras. |
@tarzzz but if we do |
One way to help eliminate the python side possibility is to complete the unit tests for the cameras, see #212. |
@sahilshekhawat For this one, maybe we should issue a warning if the user passes in a custom camera referencing this issue. Will just have the warning for the release. |
Okay, I am raising a PR for the same. |
After #239 is merged, I am going to remove this from the milestone. |
This is not a Python issue. You can change the rotation portion of the camera initial orientation transformation matrix and the rotation is not changed when displaying the scene. |
Yes, I agree. I'm pretty sure it is in the JS code. |
This bug is nasty. I spent a number of hours today trying to track it down. First off, here is a minimum example that shows camera initialization working with three.js r58 (the version we ship with PyDy): http://jsfiddle.net/nd8q6qug/5/ Some findings:
I have also tried updating three.js to the newest version, r73, but it fails to load THREE in the notebook and I haven't been able to figure out why. We are likely using the incorrect way to load custom js into the notebook. |
I've found something that could be part of the problem. The parser.js file has two AJAX calls that aren't necessarily completed before the animation function is called. It would be good to ensure that those complete before running subsequent commands. |
Moved this out of the 0.3.1 milestone since we haven't fixed it in time. |
If you run the mass_spring_damper example there is a custom camera that used to rotate the scene properly. See the first screenshot in this PR #97. But for some reason only the location of the camera seems correctly adjusted and not the orientation.
The text was updated successfully, but these errors were encountered: