smartscenes / sstk

SSTK: SmartScenes ToolKit
MIT License
116 stars 41 forks source link

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

Open KaustubhJha-TUL-UpperFunnel opened 9 months ago

KaustubhJha-TUL-UpperFunnel commented 9 months ago

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 commented 9 months ago

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 commented 8 months ago

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.