We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Saving states

Home Forums Puzzles Saving states

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #11055
    scalare
    Customer

    Hello again,

    quick question about the “save state” puzzle. I get that it can be used to save the state of object/collection/all to a variable. But what if I want to save it to a more permanent container, like in an external database, associated with a given user? I assume I should be able to use the “send data” / “load data” puzzles, but what about applying the loaded state to the current scene? I don’t see a puzzle to “load state”, only the “undo state”. Is there a way to do this?

    Thank you!

    #11058

    Hi,

    Save state/undo puzzles deal with all properties of objects. For saving the state permanently in a server-side database you need to manually choose what variable or object properties you want to save. The saved configuration, in the form of dictionary, for example, can be sent with send data puzzle for persistent storage.

    Chief 3D Verger | LinkedIn | Twitter

    #11076
    scalare
    Customer

    Hi Yuri,

    thank you for your answer. But I think I did not explain myself clearly. What I need to know is if there is a way to retrieve the configuration saved in a server-side database and apply it to a scene. Suppose you are using a configurator, and you want users to be able to keep the progress they’ve made and save it for a later stage, so they can continue with it when they are able to. I get I can save the state, but how do I load it back?

    Also, you said that I would have to manually choose what variable or object properties I want to save. If I use the “save state” puzzle, and apply it to “all objects”, wouldn’t it save all the properties of all objects, as a “state of current scene”?

    And third: I’m going to use dummy gltf files to load materials on the fly. If I save state where a material was copied from an external gltf file, when I load it back, will I be able to apply that saved material to the scene, even though the material is not part of the original gltf file?

    Thanks a lot!

    #11203

    Hi, I think I can help here :bye:

    save/undo state Puzzles is not what you want. What you really need is to put all required state of your app in the dictionary and then send it over the network for persistent storage (e.g using JSON format). This state can include Puzzles variables, object positions, active materials and so on.

    In the upcoming Verge3D release we plan to implement this storage facility in our WordPress plug-in. As such you won’t need to think about server-side anymore. Stay tuned!

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #11210
    scalare
    Customer

    Great, thanks!

    #12912
    papibeast
    Participant

    Hey! Did you figure it out?

    #12948
    scalare
    Customer

    No, we decided not to include this feature for this initial version we’re working with. :negative:

    #28363
    core3d
    Customer

    Hi, I think I can help here :bye:
    save/undo state Puzzles is not what you want. What you really need is to put all required state of your app in the dictionary and then send it over the network for persistent storage (e.g using JSON format). This state can include Puzzles variables, object positions, active materials and so on.
    In the upcoming Verge3D release we plan to implement this storage facility in our WordPress plug-in. As such you won’t need to think about server-side anymore. Stay tuned!

    Any progress on this one? I’m trying to save user changes on scene for later use.

    #28736
    Anonymous
    Inactive

    Hello! (I’m new here. Currently evaluating Verge3D for use on our company’s site.)
    Am I understanding correctly: If I make a product configurator for our shop, currently users cannot save any changes to load up later?
    If so, I’d like to +1 this feature request. It’s a big requirement for us.

    #28741
    core3d
    Customer

    hi, there is no ready to go features for this but i fixed this issue with custom javascript function and a database connected to it on my project. So if you have a good programmer on your company you can do it too i guess.

    #28804
    GLiFTeK
    Customer

    Hello! (I’m new here. Currently evaluating Verge3D for use on our company’s site.) Am I understanding correctly: If I make a product configurator for our shop, currently users cannot save any changes to load up later? If so, I’d like to +1 this feature request. It’s a big requirement for us.

    I’m pretty sure you can use the “save state” puzzle piece to export all the state’s variable’s current values to a JSON file and use JavaScript/PHP to save it to a database, say, in a user/customer/client’s login account data.

    The user guide says it saves in browser memory for undo features, but I’m pretty sure that’s flexible to be used like you’re saying.

    I’ll be experimenting with it soon.

    I’ll post anything I find. :good:

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.