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

Set custom axis as 'up' for camera #2603

Open
lej0hn opened this issue Jun 19, 2024 · 3 comments
Open

Set custom axis as 'up' for camera #2603

lej0hn opened this issue Jun 19, 2024 · 3 comments

Comments

@lej0hn
Copy link
Contributor

lej0hn commented Jun 19, 2024

Hello everyone!
I am trying to create a scene with an object on it, and have the turntable camera rotate around that object, while the view of the object remains 'upright', and the object itself should remain in its initial position.

Further info:
The object is a cell, created with the neuroml standard with specific coordinates for each section, so moving it is not ideal. Right now, its possible to set a center for the camera and rotate around it, but given the cell is at some angle of the 'up' axis (currently y), when rotating it does not appear 'upright' (that is along the up - y axis).

Possible solution:
Perhaps if we could set a custom axis for the camera to rotate around, then the cell's/object's main axis could be used in order to rotate and orbit around it, while keeping the object upright

Any other solution is welcome

@sanjayankur31
Copy link
Contributor

@lej0hn , I think we solved this one? Please close if we did?

@lej0hn
Copy link
Contributor Author

lej0hn commented Aug 12, 2024

@sanjayankur31 I believe we found that we can set as 'up' any of the x,y,z axis only. Here I'm discussing the possibility of having any custom vector as the 'up' axis of rotation.

@sanjayankur31
Copy link
Contributor

Ah, cool, makes sense 👍

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