Skip to content

Modernise mesh rendering routines #4

Description

@optimus-code

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'.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions