Prevent Preloading, Use a Play Button

Home Forums General Questions Prevent Preloading, Use a Play Button

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #22916
    AvatarJohn Sperry
    Licensee

    Is there anyway I can make my model prevent preloading, and wait for a user to click on the model before loading takes place. The loading process is taking a bit of time and I would prefer it didn’t load automatically. I would like it to operate in much the same way as sketchfab, where sketchfab has that big play button over the model and waits for a click before loading.

    #22917
    Yuri KovelenovYuri Kovelenov
    Developer

    Hi,

    you can create an empty scene (you can also additionally pause the rendering for the sake of performance).

    Then you add an HTML button (e.g. with Webflow) over the canvas, and assign an onclick event on it, so that when the user clicks it, the button is hidden (visibility > hidden) and the scene is loaded.

    Or you can use JavaScript instead to do all this. :)

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

    #22918
    AvatarJohn Sperry
    Licensee

    Thanks!

    #22926
    Yuri KovelenovYuri Kovelenov
    Developer

    sure, let us know it goes!

    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.