Change the loader image?

Home Forums Programming Change the loader image?

This topic contains 5 replies, has 3 voices, and was last updated by Alexander Kovelenov Alexander Kovelenov 2 months, 3 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2343

    jem
    Customer

    I like the new graphics in the V3D scene loader that ships with V2.0. The spinning hexagon is definitely an improvement over the one-step progress bar, but is it possible to change this image? Can I swap the PNG file? This would be useful for client-specific branding.

    It looks like the hexagon (GearImage) is baked into the Verge3D library as a data URL. The only way that I see of changing this is to edit the loader.

    Has anyone tried to change this?

    Thank uou,
    Jem

    #2345
    Will Welker
    Will Welker
    Customer

    Yes it would be cool to be able to load a custom image. Also, due to the nature of loading large chunks of data at a time, the loading progress appears to stop. Being able to load an animated gif (like a little spinning gear icon) as part of the preloader would give the appearance of activity.

    #2347

    Currently the only possible way to achieve this is implementing custom preloader which inherits directly from Preloader class (you can use SimplePreloader as an example). Regarding the parameter to assign a custom image, I will put that in my personal TODO list.

    Co-founder and CTO at Soft8Soft

    #2359

    jem
    Customer

    I think that this function will be useful for the community.

    I will experiment with a custom preloader

    Thanks again,
    Jem

    #3274

    jem
    Customer

    Wow! It is easy to change the loader graphics in 2.2!

    For my test, I used an animated gif and I did not want it to spin. Here are the steps:
    1. Update you app’s v3d.js engine to 2.2 if it is not already.
    2. Place your graphic in the app directory.
    3. Edit the app’s main js file. You will see a line that says new v3d.SimplePreloader … . Edit that line.

    Here is mine:

    All of the available parameters are listed in the user manual.

    Thanks,
    Jem

    #3277

    Glad it was helpful :good:

    Co-founder and CTO at Soft8Soft

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.