react-planner icon indicating copy to clipboard operation
react-planner copied to clipboard

What format is the output JSON file? Doesn't seem to be Three.js legacy json

Open ericvanular opened this issue 5 years ago • 5 comments

Would be great to export a standard GLTF file. Are there any plans to support this?

@danilosalvati is there any way to use the JSON file that react-planner outputs in another 3d case? How could I convert it for use in an A-frame scene for example?

ericvanular avatar Jul 06 '20 13:07 ericvanular

@JaccoGoris saw your collada exporter feature. Would you please consider making a GLTF exporter as it seems to be the new standard these days for three js? I'd love to do it myself but not really sure how

ericvanular avatar Jul 06 '20 18:07 ericvanular

For the record, the JSON export is not 3D data, but just the data of the elements and where they are located in the planner. This data is custom for the react planner. So it is definitely not a sort of GLTF analog. I can take a look at how you would do a GLTF export, but it will probably require a Three.js update.

JaccoGoris avatar Jul 16 '20 07:07 JaccoGoris

Is there a good reason for storing it in a custom way? Wouldn't it be easier to store it in the cross platform GLTF format, which is a JSON standard? It could then integrate with other 3d applications and be a far more useful tool. Please let me know if there's any way to help you, I'm new to WebGL stuff but this is a great project

ericvanular avatar Jul 16 '20 13:07 ericvanular

@JaccoGoris you seem to be the primary maintainer of the project at this point. Your pull requests look great but haven't been merged yet sadly. If the original team has abandoned the project, I would support you taking over (only if you want to and have time of course)

ericvanular avatar Jul 16 '20 13:07 ericvanular

Hi Eric! the current data json they are using here is just a representation of the scene, to easily build and load the project. I'm not sure if GLTF existed when this project was built, and I'm not sure using GLTF is a good idea, as it is a file format, and it's harder to manipulate the data. As to your other question, I'll make a fork and continue on that, when I find the time. I also need some changes anyway for project I'm working on :)

JaccoGoris avatar Jul 17 '20 08:07 JaccoGoris