Some gltf improvements #4

Merged
SeanOMik merged 13 commits from feature/gltf-scene-fixes into main 2024-03-09 05:46:45 +00:00
Owner

The previous support for GLTF was pretty primitive, it only supported loading meshes, and didn't load texture samplers. This pr fixes a lot of those, these improvements enabled the Sponza scene (gltf optimized) to load with no issues related to loading.

image
(ignore missing AA and issues with transparent textures, they require improvements to the renderer)


Improvements:

  • GLTF Scene loading
  • GLTF scene node hierarchy
  • Retrieve the world transforms of scene nodes and use them in the renderer
  • Fix a bug with the renderer transform buffers caused by only allowing a single transform per entity. (commit)
  • Load the texture sampler of the GLTF texture and use it inside the renderer.
The previous support for [GLTF](https://github.com/KhronosGroup/glTF) was pretty primitive, it only supported loading meshes, and didn't load texture samplers. This pr fixes a lot of those, these improvements enabled the Sponza scene ([gltf optimized](https://github.com/toji/sponza-optimized)) to load with no issues related to loading. ![image](/attachments/c52e143d-813e-4456-9334-f43269d9575c) (ignore missing AA and issues with transparent textures, they require improvements to the renderer) --- ### Improvements: * GLTF Scene loading * GLTF scene node hierarchy * Retrieve the world transforms of scene nodes and use them in the renderer * Fix a bug with the renderer transform buffers caused by only allowing a single transform per entity. ([commit](8d1961bb08d2306364ac01943ff642b60ada451a)) * Load the texture sampler of the GLTF texture and use it inside the renderer.
1.1 MiB
SeanOMik added 13 commits 2024-03-09 05:45:49 +00:00
SeanOMik merged commit 1d7d13eb7b into main 2024-03-09 05:46:45 +00:00
SeanOMik deleted branch feature/gltf-scene-fixes 2024-03-09 05:46:45 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SeanOMik/lyra-engine#4
No description provided.