Skip to content

Help on camera render order and render bins #1180

Answered by Hugal31
Hugal31 asked this question in Q&A
Discussion options

You must be logged in to vote

After some trial and error, I think I understand the algorithms now. It looks like this:

  • For each active camera of the current GraphicsContext (which usually are the main and slave camera of the current Viewer), sorted by RenderOrder and RenderOrder num:
    • Traverse the scene graph and "push" the encountered nodes for rendering.
    • If a "nested" (i.e. in the scene graph) camera is encountered:
      • If it has the NESTED_RENDER render order, continue to traverse with its settings (I didn't use this one, so I can't tell for sure).
      • Otherwise, push it in the RenderStage before or after the current camera render, depending on its render order.
      • If I understand correctly, the "nesting" camera do not rend…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Hugal31
Comment options

@robertosfield
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Hugal31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants