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.

Using javascript animations besides scene loading

Home Forums Programming Using javascript animations besides scene loading

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #30862
    Avatarweb
    Licensee

    I’m in the middle of disguising the scene loading of a application.

    I’m fading in/out some html text elements on page loading. CSS animations are running well, but I need to better time some animations, also with callback if animation has finished etc. Therefor I’m using javascript but the loading in the background seems to affect the animations of the html elements, making them choppy.

    At the moment I’m using anime.js as a framework to make my life easier. Does someone maybe have some experience in that regard? Or does someone of the verge team knows how to optimize the loading?

    #30917

    Hi,
    Unfortunately, this is how it works for a moment. :unsure: Then the scene loads, there is too much computational work: parsing JSON, preparing scene objects, loading textures, compiling shaders, etc. Maybe in the feature, some of these can be done with a web worker, but it will require a lot of refactoring.

    Co-founder and CTO at Soft8Soft
    FB | Twitter | VK

    #30925
    Avatarweb
    Licensee

    Hey Alexander,
    thx for your reply.

    Could there maybe a possible workaround of loading a smaller gltf with just a camera and no geometry. And then use the append scene puzzle or some javascript to load the “real” model afterwards?

    #30940
    Yuri KovelenovYuri Kovelenov
    Developer

    you might give it a try! :yes:

    3D Verger, the CEO
    LinkedIn | FB | Twitter | VK | 新浪微博

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