Skip to content

BUG: brain.set_view(**brain.get_view()) not no-op #11941

Closed

Description

@larsoner

I've run into a problem: if I get the camera parameters from brain.get_view() and assign them back into the proper parameters of brain.show_view(), the camera angle has changed. Same for going one level deeper with brain._renderer.get_camera() and brain._renderer.set_camera(). It seems that whatever the set_camera() is doing is not lining up with what get_camera() returns (other than having a different order of the parameters)

Originally posted by @wmvanvliet in #11891 (comment)

Activity

  1. added this to the 1.6 milestone on Aug 31, 2023
  2. self-assigned this
    on Aug 31, 2023
  3. wmvanvliet commented on Sep 12, 2023

    @wmvanvliet
    Contributor

    Furthermore: using the arrow keys in a Brain figure to rotate the camera around gives strange results, as in that the camera also zooms in and out. There seems to be a problem with the translation of azimuth and elevation to the camera position and view direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions