Skip to content

Load entity meshes from gltf/glb files#2762

Open
RanPix wants to merge 45 commits intoPixelGuys:masterfrom
RanPix:gltfmodels
Open

Load entity meshes from gltf/glb files#2762
RanPix wants to merge 45 commits intoPixelGuys:masterfrom
RanPix:gltfmodels

Conversation

@RanPix
Copy link
Copy Markdown
Contributor

@RanPix RanPix commented Mar 20, 2026

Requires #2733

Progress towards #2419 and #87

So far only works in blockbench coordinate system (right handed, y-up, z-forward) converting it to our system, so for now you have to be sure you export your mesh in the right system if its from another program. Doesn't load textures so they are still stored in game assets. This is a really simple start that i will build up on in future PRs.

A few questions still remain:

  • Do we want to keep the legacy .obj loading? (no, because in a later pr when i add joints i wont be able to add them and it will brake stuff, and thats generally useless)
  • Do we want to load the file data ourselves and then feed it into the cgltf or just let cgltf handle that
  • Do we want to override cgltf allocation functions?
  • Do we want to try handle other possible edge cases that might happen when exporting from other applications? (like different coordinate systems and stuff)

@RanPix RanPix marked this pull request as ready for review March 21, 2026 22:17
@RanPix
Copy link
Copy Markdown
Contributor Author

RanPix commented Mar 21, 2026

ready for review

@Wunka Wunka moved this to WIP/not ready for review in PRs to review Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: WIP/not ready for review

Development

Successfully merging this pull request may close these issues.

2 participants