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.

Cannot Specify the imageURL for the SimplePreloader in 2.15.0-pre2

Home Forums Bug Reports and Feature Requests Cannot Specify the imageURL for the SimplePreloader in 2.15.0-pre2

Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #19193
    jem
    Customer

    I cannot get the SimplePreloader class to use a user-specified image in place of the gear image in 2.15.0-pre2.

    In past builds of Verge3D, I was able to have the SimplePreloader class use my own image in place of the gear by passing its constructor a value for imageURL in its arguments. This was an easy way of putting a logo of my own choosing on a loading screen. This was done like this:

        var preloader = initOptions.useCustomPreloader 
                ? createCustomPreloader(initOptions.preloaderProgressCb, 
                initOptions.preloaderEndCb) 
                : new v3d.SimplePreloader({ container: 'container' , imageURL:'my_logo_animated.gif', imageRotationSpeed: 90});

    The preloader in 2.15.0-pre2 seems to ignore the imageURL property. Is this a bug? If not, is there a simple way to replace the spinning gear?
    Thank you.

    Jeremy Wernick

    #19194

    Hi,
    SimplePreloader styling (images, colors, sizes etc) is now done using CSS classes. Please specify the background-image property on the v3d-simple-preloader-gear class to change gear image:

    .v3d-simple-preloader-gear {
        background-image: url("PATH_TO_YOUR_IMAGE");
    }
    

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #19195

    You can also use the src/style.css file as a reference if you need to change other CSS options for preloader, annotations, WebGL errors etc.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #19199

    Unfortunately, there was an issue in the style processing code preventing proper gear image styling. It should be fixed by now. Please re-download your pre2 build and update the v3d.js module in your app.

    Soft8Soft Tech Chief
    X | FB | LinkedIn

    #19203
    jem
    Customer

    Hi Alexander, I was able to get my logo to work using your CSS suggestion. Thank you for the very quick fix!

    Jeremy Wernick

    #19214

    Glad we could help!

    Chief 3D Verger | LinkedIn | Twitter

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