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.

Clickable preview image before load

Home Forums General Questions Clickable preview image before load

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33295
    dubcut
    Participant

    Hello
    As i’m creating a demo page with some verge3d tests, i have added them one after the other in one html page.
    Now, i don’t want them to load all at the same time, but instead show a clickable preview image that loads the v3d only when it’s clicked.
    (And then furthermore unload if anotherone gets clicked.)

    I’m trying of a good way to do that. any suggestions would be welcome!
    thanks

    #33324

    Hi,

    you can probably load just preview images first, that upon user click are replaced with Verge3D iframes.

    For unloading, you could dispose the Verge3D scene first to free resources (with the puzzle scene > unload). Then you can replace the iframe with the preview image.

    Chief 3D Verger | LinkedIn | Twitter

    #33335
    dubcut
    Participant

    Thank you Yuri
    i’ll try the unload in puzzle.
    i’m still a very new verge3d user, but so far i really like it!
    now i got to do some html research for the replace thingy :wacko:

    the image shows my first test. looks quite close to the blender eevee render :)

    Attachments:
    You must be logged in to view attached files.
    #33345

    looks nice! :good:

    Chief 3D Verger | LinkedIn | Twitter

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