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.

PUZZLE – html interaction question

Home Forums Puzzles PUZZLE – html interaction question

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #25534
    AvatarNaxosCG
    Licensee

    Hello folks,
    I’m now starting my very first real customer project with verge3D, yeehaa !

    I’m a 3D guy, not a code one, so i have a tech question :

    The project is a billards 8pool table with several color choices : frame, balls, map and so on, with each time several colors (10-15).
    A coder will code the website, and we have for each choice a jpg small vignette picture as a button, with each time a unique ID, like “Frame_red”, or “BallsA_yellow” for ex.

    I saw the html – verge3D tutorials and i know that i may use the html “on event click for element ID_xxx” command to know what button were clicked and change my 3D in that way.

    My question is, if i have 5 different parts to change in 15 possible colors, do i have to create 75 times this “on event click for element ID_xxx” to test each ID ?

    Or is there a better way to do so, like – for ex – look what kind of button were clicked (parsing the first part of ID, and second part, and so on) ?

    Will the verge3D support and behave fast if i have 75, 150, 300 tests for unique IDs ?

    Thanks for help.
    Best regards.

    Here is the existing website where we will replace the PNG-layered pictures into full Verge3D :
    https://configurateur.billard-toulet.com/

    #25558

    My question is, if i have 5 different parts to change in 15 possible colors, do i have to create 75 times this “on event click for element ID_xxx” to test each ID ?

    In most cases yes. You can try to deal with a complex naming system, but to be sure batter to create 75 unique events.

    Co-founder and lead graphics specialist at Soft8Soft.

    #25559
    AvatarNaxosCG
    Licensee

    As far as i’m not a code guy, but i can understand logic and somehow algorythics, i think i’ll go for “hard” explicit system : testing all IDs.

    Just i hope it will not slow down a lot the 3D app if i need to test 75-100 IDs.

    #25561

    This will not influence on performance I think.

    Co-founder and lead graphics specialist at Soft8Soft.

    #25563
    AvatarNaxosCG
    Licensee

    if it stays under the second to change a color, that is ok for my client.

    #25564

    I hope no, but for sure need to make tests.

    Co-founder and lead graphics specialist at Soft8Soft.

    #25565
    AvatarNaxosCG
    Licensee

    Maybe the genius that made the scooter example could give a trick here ?

    Not sure to be able to understand the very complex puzzles system that comes with this scene.

    #25566

    Scooter demo is hardcoded. There’s a ton of when click event buttons. Each button do one thing, hide/show something or change a color of a carpaint or change a material of the seat. You can start with this basic tutorial.

    Co-founder and lead graphics specialist at Soft8Soft.

    #25567
    AvatarNaxosCG
    Licensee

    ok i’ll give a try, thank you.

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

You must be logged in to reply to this topic.