MySchoolEngine / GLEngine

The goal of this repository is to build rendering focused game engine. Feel free to join me and extend this project.
https://myschoolengine.github.io/GLEngine-Documentation/
Other
21 stars 1 forks source link

Derived resources #206

Open RohacekD opened 1 month ago

RohacekD commented 1 month ago

Is your feature request related to a problem? Please describe. Some resources are derived from the original ones. E.g. Model is obj but not in form usable in our renderer. If we want to use it for ray-tracing we need to build trimesh out of it. If we want to be efficient we need to build BVH for it. But not every time we need to load all resources. As a stretch goal, it would be nice to select to load only such resources, that are desired. Also, some meta files would be useful as I want to load icons for future resource browsers.

Describe the solution you'd like Such derived resources would need to be built or loaded from the original one. e.g. BVH is based on the array that is stored inside trimesh. This means we can't have BVH without base resources, but the icon is possible to load without it.

Additional context This will allow us to improve load times for ray-tracer and real-time renderer.

RohacekD commented 1 month ago

We need to track changes to the resources and propagate them to child/parent resources.

RohacekD commented 1 month ago

Also, as part of this task, I want to create a debug window for the resource manager to have the overview.