Skip to content

Is it possible rotate the camera view around the z-axis? #391

Description

@maxcrous

I have a point at the world center with coordinate (0,0,0), with x,y,z world box limits of [-10, 10].
I also have pre-establish initial camera view with azimuth=40, elevation=-150.
Is there a way to rotate the camera view around the z-axis to in order to "pan around" this point?

This question probably relates to this issue #273, although it does not hint at a solution for the current camera rotation model.
I also found the parameter fig.angley in the documentation, which is now obsolete according to this thread.
Perhaps that would have allowed for something like this:

while True:
    fig.anglez += 0.01 * np.pi * 2
    time.sleep(0.1)

Or perhaps there is a clever combination of azimuth and elevation increments I am not seeing?

Also, thank you for library, it has been immense joy using it to visualize a photogrammetry setup. It is a much needed library, as Matplotlib does not fully support z-buffering/occlusion, not to mention responsive interactivity.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions