wrld3d / unity-api

Issue tracking for the WRLD Unity SDK
28 stars 8 forks source link

Extend the sdk to load the osgb and 3dtiles models #118

Closed hcshen closed 1 year ago

hcshen commented 1 year ago

Hello, can wrld sdk be open source? I am currently working on a metauniverse application and I want to modify the source code to implement loading osgb and 3dtiles models. How can I do this without modifying the source code?

chrisdjali-wrld3d commented 1 year ago

At this time, we've got no plans to open-source the whole Wrld SDK, and this is unlikely to change. The entire C# part of our Unity SDK is available for our customers to modify as part of their app, though, and that should give quite a bit of flexibility to change things.

Loading OSGB and 3D Tiles models shouldn't require any changes to the Wrld SDK, though. Once you've got a system to load the models into Unity, you can use our GeographicTransform class to position their GameObjects in the world. Turning a 3D Tiles tileset into GameObjects should be relatively straightforward as it's a fairly simple JSON description of where things are in the world that references some glTF 2.0 models, and there are a few reliable glTF loaders for Unity. OSGB will be harder, though, as it was designed specifically to work with applications based on OpenSceneGraph, including data that isn't useful for anything else. Some OSGB files simply won't be representable faithfully with Unity's internal format, so won't look as intended. https://github.com/xarray/UnityOSGB appears to be an OSGB loader for Unity, but it's unclear whether it'll work for your needs.