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.

How to restart the animations

Home Forums General Questions How to restart the animations

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #67619
    aqiang
    Customer

    Hello everyone, I’ve been making good progress in implementing custom functionality for my datgui panel. Everything has been going smoothly until I reached the “load” option. When I click “load,” all the functions work, and there are no errors in the console. However, the objects in the scene that were supposed to have animations are now frozen. Strangely, the console still prints that the “isAnimationPlaying” for these objects is true. What could be causing this issue, and how can I restart the animations?

    Attachments:
    You must be logged in to view attached files.
    #67624
    kdv
    Participant

    What’s happening in the scene after Load has been clicked? Are objects exactly the same as before?

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #67657
    aqiang
    Customer

    @kdv, gui.load( obj, recursive=true )
    Recalls values that were saved with gui.save().
    The explanation above is about the DatGUI code, and you can find it at https://lil-gui.georgealways.com/#GUI#load.

    #67658
    kdv
    Participant

    The question was not about your gui. It doesn’t matter. What’s hapenning with objects in the scene after loading?

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #67659
    aqiang
    Customer

    In the Three.js editor, I noticed there are “stop” and “play” options. In the code, there’s a method app.play() that can switch between editing mode and animation mode. Is there a similar method in the v3d app to start the animation loop?

    #67660
    aqiang
    Customer

    “I’ve uploaded a web example to this address https://vv4d.com/datgui/. You can try it by clicking ‘save’ first, and then after clicking ‘load’, the animation becomes static.”

    #67661
    kdv
    Participant

    Corrupted action (with undefined speed) after loading

    Most likely the problem is in this parameter

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #67664
    aqiang
    Customer

    The input text ‘nomal’ from the puzzle doesn’t match the ‘normal’ key, now the issue has been resolved. Thank you very much! kdv :good:

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