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

[Renderer] Investigate issue with rendering trasparent/semi-transparent objects with different z-order #18

Open
denyskryvytskyi opened this issue May 29, 2022 · 0 comments
Labels
improvement Feature improvement

Comments

@denyskryvytskyi
Copy link
Owner

denyskryvytskyi commented May 29, 2022

Investigate issue with rendering trasparent/semi-transparent objects with different z-order.
Possible solutions:
For 2D Renderer (with disabled depth testing):

  • (PRIMARY OPTION) Layers system
  • Just render in the correct order (sorting) according to Sprite Z position before rendering.

For 3D Renderer:

  • Make next rendering order:
    • Draw all opaque objects first.
    • Sort all the transparent objects.
    • Draw all the transparent objects in sorted order
  • Order independent transparency technique. Good explanation here
@denyskryvytskyi denyskryvytskyi added the improvement Feature improvement label May 29, 2022
@denyskryvytskyi denyskryvytskyi changed the title [Renderer] Blend/depth issue [Renderer] Investigate rendering trasparent/semi-transparent objects with different z-order May 29, 2022
@denyskryvytskyi denyskryvytskyi changed the title [Renderer] Investigate rendering trasparent/semi-transparent objects with different z-order [Renderer] Investigate issue with rendering trasparent/semi-transparent objects with different z-order May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Feature improvement
Projects
Status: Todo
Development

No branches or pull requests

1 participant