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

Modernise mesh rendering routines #4

Open
2 tasks
optimus-code opened this issue May 10, 2022 · 0 comments
Open
2 tasks

Modernise mesh rendering routines #4

optimus-code opened this issue May 10, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@optimus-code
Copy link
Owner

optimus-code commented May 10, 2022

Goal - To use Vertex and Index buffers for all mesh rendering routines

Issues

  • Quake builds up geometry every frame combining static + dynamic lighting
  • The current data structures are not suitable for creating VBOs and IBOs, we need to generate indices and potentially reformat mesh data
  • For "Alias Models" (any non-sprite, non-BSP surface mesh) each frame has vertex data that would need to be combined and indexed.
  • Lightmap data is calculated on the fly which isn't really conducive to the modern approach with shaders, preparing things ahead of time.

Tasks

  • Refactor entity mesh routines and convert to OO based approach, to support eager generation of VBOs and go away from intermediate mode mesh generation.
  • Determine the implications of switching approaches, how does it effect PVS, occlusion etc. Systems may need un-'spaghettifying'.
@optimus-code optimus-code added the enhancement New feature or request label May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant