Skip to content

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

Open

Description

@ericvanular

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?

Activity

  1. ericvanular commented on Jul 6, 2020

    @ericvanular
    Author

    @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

  2. JaccoGoris commented on Jul 16, 2020

    @JaccoGoris
    Contributor

    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.

  3. ericvanular commented on Jul 16, 2020

    @ericvanular
    Author

    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

  4. ericvanular commented on Jul 16, 2020

    @ericvanular
    Author

    @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)

  5. JaccoGoris commented on Jul 17, 2020

    @JaccoGoris
    Contributor

    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 :)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions