Skip to content
This repository has been archived by the owner on Dec 10, 2023. It is now read-only.

Virtualized mesh instancing #117

Open
FacoBackup opened this issue Nov 21, 2022 · 0 comments
Open

Virtualized mesh instancing #117

FacoBackup opened this issue Nov 21, 2022 · 0 comments
Assignees

Comments

@FacoBackup
Copy link
Contributor

Engine manages instances for each mesh in the backend instead of requiring user setup.

Possible implementation

  1. Update entity reference on movement-thread with the current mesh, material and offset buffer linked to it
  2. Have a buffer containing all the instancing groups IDs
  3. Have a transformation buffer setup for teach mesh that will grow/shrink depending on the quantity of entities linked to a single mesh (16 * NOfEntities)4. Have a buffer setup for materialIDs that will grow/shrink depending on the quantity of materials linked to these entities (1 * NOfEntities)
  4. Send buffers to movement-thread when mesh is loaded
  5. Update the transformation buffer with the current entity transformation when such changes
  6. Post message to main thread requiring materialID and transformation buffers to update
@FacoBackup FacoBackup self-assigned this Nov 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant