Skip to content

Create opengl running 'modes' #2069

Open
@k4pran

Description

@k4pran

Enhancement proposal

Opengl brings along a number of new features that is creating a lot of complexity. I think it is slowly becoming confusing to maintain.

First example is the number of output formats:

  • -s results in saving a single png
  • --format <INSERT_FORMAT> allows outputs such as mp4, webm, png, gif etc
  • write_to_movie results in mp4 output
  • -p triggers a preview on the above format

This is just like cairo but now in opengl we have the pyglet window and interactive_embed. So now we have all the above options, plus two different ways to create windows:

  • Pyglet window can be created just to view the scene, then close after the scene has finished
  • interactive_embed that keeps the window open and allows for interaction

See this PR #1982 to see how it can start getting messy, trying to determine how different permutations of these should behave.

I am not sure of the best solution, but I think we should at least agree on how the different flags should interact, when windows should be created, the precedence order etc, then when we agree on this boil it down to a number of modes that are determined at startup so that we don't need to keep checking lots of flags to determine the behaviour.

Additional comments

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAdditions and improvements in generalopenglConcerning the OpenGL renderer.

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions