- This topic has 10 replies, 7 voices, and was last updated 4 years, 5 months ago by GLiFTeK.
-
AuthorPosts
-
2019-02-06 at 3:35 am #11055scalareCustomer
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!
2019-02-06 at 8:41 am #11058Yuri KovelenovStaffHi,
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.
2019-02-06 at 12:15 pm #11076scalareCustomerHi 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!
2019-02-08 at 3:38 pm #11203Alexander KovelenovStaffHi, I think I can help here
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!
2019-02-09 at 2:40 pm #11210scalareCustomerGreat, thanks!
2019-03-19 at 1:01 am #12912papibeastParticipantHey! Did you figure it out?
2019-03-19 at 12:30 pm #12948scalareCustomerNo, we decided not to include this feature for this initial version we’re working with.
2020-06-04 at 4:30 am #28363core3dCustomerHi, I think I can help here
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.
2020-06-11 at 3:24 pm #28736AnonymousInactiveHello! (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.2020-06-11 at 6:10 pm #28741core3dCustomerhi, 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.
2020-06-13 at 11:16 am #28804GLiFTeKCustomerHello! (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.
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature! -
AuthorPosts
- You must be logged in to reply to this topic.