Skip to content

Conversation

@gkjohnson
Copy link
Contributor

@gkjohnson gkjohnson commented Dec 7, 2025

Fix #387
Related to #1373
Related to #1375
Related to #1390

  • Move BabylonJS tiles renderer implementation from this repo.
  • Export renderer as 3d-tiles-renderer/babylonjs.
  • Add demos, basic docs
  • Reduce inline math instance creation

TODO

  • Use babylon gui system?
  • Add attributions to demos
    • requires accessing gltf "asset" meta data fields
  • Use Babylon math functions when available
    • OBB, Region, Ellipsoid
    • Plane "transformToRef"
  • Use the correct GLTF Loading system
  • Use correct imports
  • Add "events" support (dispatch? Other "babylonjs-esque" approach like observers?)

Open Questions

  • Support left handed coordinate system
  • Bytes used function
  • Cache more logic in "update" loop

@gkjohnson gkjohnson added this to the v0.4.19 milestone Dec 7, 2025
@gkjohnson
Copy link
Contributor Author

cc @georginahalpern

"@vitejs/plugin-react": "^4.3.2",
"@vitest/eslint-plugin": "^1.5.1",
"babylonjs": "^7.0.0",
"babylonjs-loaders": "^7.0.0",
Copy link

@georginahalpern georginahalpern Dec 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recommend using @babylonjs/core and @babylonjs/loaders. that will also allow us to move over to the es6 ImportMeshAsync in gltfloader (though im happy to submit a PR after this checkin though! )

"eslint-plugin-react-hooks": "^5.0.0",
"globals": "^16.5.0",
"leva": "^0.10.0",
"lil-gui": "^0.21.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could perhaps use the bayblon GUI system here

}

// Use unique filename to prevent texture caching issues
// TODO: What is the correct method for loading gltf files in babylon?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

happy to submit follow-up PR importing "@babylonjs/loaders/glTF/2.0" and then using module-level ImportMeshAsync

@gkjohnson
Copy link
Contributor Author

@georginahalpern - thanks for the comments. All of the suggestions sound good to me so I'm happy to take PRs for them. I don't want to merge or publish babylon support before it's ready so if it's okay lets consider this babylon-support branch the babylon dev branch and make any PRs in it. Then once some of the big TODOs are addressed / answered (math class support, correct imports, etc) we can merge into master and publish.

@georginahalpern
Copy link

@gkjohnson first PR with some minor changes
#1397

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Babylonjs renderer

3 participants