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

Formalize the flags indicating rendering #485

Open
pengzhenghao opened this issue Jul 31, 2021 · 0 comments
Open

Formalize the flags indicating rendering #485

pengzhenghao opened this issue Jul 31, 2021 · 0 comments

Comments

@pengzhenghao
Copy link
Member

Currently, we use so many flags to denote whether some object or the whole environment is rendered. I think we should formalize those flags. Here is a little plan:

Global Flags

  • use_render:
    • True: onscreen or offscreen. even in headless screen this can also be True.
    • False: no rendering, no RGB observation, no popup windows, no top-down view or so.
  • use_onscreen:
    • True: Can only be True when use_render is True. Denoting using a popup window to visualize. It is impossible for a headless machine to have use_onscreen == True.

Object-specified Flags

  • object.rendered:
    • True: Can only be True when use_render is True. If an object has object.rendered == True, then two things are hold: (1) its model is loaded. therefore object.loader != None. (2) its model is attached to the engine.
    • False: This could happen even use_render is True. It saying that this object will not be rendered.

Flags in config system

  • use_render
  • use_onscreen
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

1 participant