Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to convert sstk format json file into something three js can understand ? #64

Open
KaustubhJha-TUL-UpperFunnel opened this issue Jan 27, 2024 · 2 comments

Comments

@KaustubhJha-TUL-UpperFunnel

I am trying to render 3D models on web using three js only problem is the black box function spits out a json which is sstk compatible. I would like to know whether or how i can convert the sstk compatible json into something three js can understand for react web development.

@atwang16
Copy link

Hi @KaustubhJha-TUL-UpperFunnel , as of now I don't know of any plan to add support for three.js within sstk, but I don't see why it wouldn't be possible to build a set of code to ingest the STK format. You would mainly need to parse through the architecture and build the floor/walls/ceilings first, and then load each object model individually into the scene for your particular assets. I am not familiar with three.js specifically so I apologize that I cannot provide more help than that at the moment, but let me know if that is helpful or if you have any follow up questions about how any parts of the code work.

@angelxuanchang
Copy link
Contributor

The SSTK supports a variety of different functionalities and is built on top of three.js. What specific SSTK json format are you working with? If it is a 3D asset, then it can be exported in a standard 3D mesh format such as GLB.

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

No branches or pull requests

3 participants