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.

Can we save position / rotation in Verge published file

Home Forums General Questions Can we save position / rotation in Verge published file

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #86816
    visualizer
    Customer

    Hi
    I am wondering if there is any feature in puzzle such as save user changes made to geometries like position or rotation by using drag / rotate facility?

    Example – A simple scene with cube drag / rotate. If I drag move or rotate the cube then can it be saved by using puzzles or any means? So next time scene opens it reads from certain file or remain in memory the last session parameters?

    • This topic was modified 1 hour, 50 minutes ago by visualizer.
    #86818

    Hi,

    This is actually a very good question! There are different methods of preserving state of Verge3D-based applications:

    1) Storing data in URL params. Data is saved by the open web page puzzle with replace URL (no reload) option, which in turn gets a URL generated by the set url param puzzle. To retrieve the data use the get URL data puzzle with parameters option.

    2) Storing data in browser local storage. See the storage set / storage get puzzles.

    3) Storing data on web server. This would require authenticating your users. The easiest way to achieve that would be using cloud-based backends such as Firebase. In fact, Verge3D 4.12 is made fully compatible with such solutions. We’re preparing a how-to guide explaining how to integrate Verge3D with Firebase, so stay tuned!

    Which one to chose depends on your situation. Methods 1 and 2 are very easy to implement, but 3 is the standard approach.

    Soft8Soft Tech Chief
    Want more Verge3D updates? Follow me on X, Facebook, or LinkedIn

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