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.

Caching of verge3d app files

Home Forums Programming Caching of verge3d app files

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #32704
    chrisiwien
    Customer

    I’ve integrated a verge3d app with the WordPress-Plugin. Everything works fine, but I have a question about caching.

    Every time a user revisits the page with the verge3d app all the app content is downloaded again. I guess image data (JPG, PNG) will be cached via the standard settings.

    Does it make sense also for .blend files to define a mime type/caching type in the server settings? So the .blend files are also stored in the browser cache?

    The blend file of my verge3D has now the size of 10 MB. Would be nice if caching of this large file is possible.

    Thank you in advance for your replies.

    #32711

    Hi,

    Verge3D loads exported files .gltf/.bin, rather than .blend files. The former can be further compressed for more performance gains.

    https://www.soft8soft.com/docs/manual/en/introduction/Asset-compression.html

    Chief 3D Verger | LinkedIn | Twitter

    #32772
    chrisiwien
    Customer

    Hey Yuri!

    Thx for your answer. Ah, ok, I’ve discovered via browser network inspector that the scene files are all in the browser cache.

    The point ist: On each page visit the app loads every time completely new.

    Is there any way to store also the scene in the browser cache or is it necessary to create the 3D scene every time a user visits the page?

    I guess no, this isn’t yet implemented in browser technologies, right?

    Regards

    Christoph

    #32783

    Hi Christoph,

    Browser cache stores all files locally, on the computer of the user. So it is necessary to run the application at least once in order for the files to get cached.

    If a new scene is loaded each time the user visits your website, then there will be no gains from cache. However, it might be still possible to isolate elements, that are common for all scenes, in one scene that will always be loaded and as such cached (e.g.: some background model that is used everywhere).

    Chief 3D Verger | LinkedIn | Twitter

    #32784
    chrisiwien
    Customer

    Ok, thanks for your answer. I was just wondering why every time the preloader appears. All elements of the app are stored in the cache as you said. So the preloader shows the time for setup of the 3D scene. Ok.

    #32786

    Yep, besides the 3D scene files, there are other files that constitute the 3D web application – HTML, CSS, JavaScript, icons etc, and processing them requires time even if they are cached. The application also needs time to process the 3D scene files in order to recreate the scene graph in memory.

    Chief 3D Verger | LinkedIn | Twitter

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