Skip to content

refactor: implement the new mesh model #268

@iMeaNz

Description

@iMeaNz

Objective

Our way of handling models right now is not really great and does not really works well with the transform hierarchy system.
Basically we should have a ModelComponent that hold an asset model ref and a tree of child meshes.
Those child meshes are basically entity index for entities that have the StaticMeshComponent
This StaticMeshComponent will simply hold VBO/IBO handle for the vertex datas.
Then we have a ParentComponent that each sub-meshes entities will hold too that points back to the root entity.
In this way, we can easily reference the parent of a mesh entity, while also easily implement our transform hierarchy system.

Acceptance Criteria

  • 1. Impleme,t the ModelComponent
  • 2. Implement the StaticMeshComponent
  • 3. Implement the ParentComponent
  • 4. Use them in the render system

Dependencies

No response

Technical Details

No response

Type

Engine

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions