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.

Detect user input during app initialization?

Home Forums Puzzles Detect user input during app initialization?

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #83819
    c4cc
    Customer

    Here is the link to that dummy site. After a while the app scene will load from black.

    Notice the blue html element below the game screen is fullscreen click

    link to my zipped app

    relevant html file as attached below

    Please note that while the blender objects/models are messed up, and most of the css and html files deleted, this is because my work is confidential, and I will release the original trial product very soon. But other than that, the javascript and verge3d puzzles functions are still the same.

    • This reply was modified 21 hours, 37 minutes ago by c4cc.
    • This reply was modified 21 hours, 12 minutes ago by c4cc.
    #84061
    Qiangge
    Participant

    Hi, Please complete the full-screen button style puzzle to see the blue full-screen button (this button can be clicked while the game is loading). For example, you have already called this variable in the puzzle that runs every frame. As long as you toggle the full-screen button or press the up key, the game will use the updated value to execute the specific running logic.

    This approach probably won’t work if what you’re trying to do is change the variable value right at initialization — that’s just not doable within v3d’s logic framework. I can think of other ways, like using a global window variable or listening for events on the container, but given how complex the scene is and the performance concerns, it’s not really practical at the moment.

    • This reply was modified 14 hours, 55 minutes ago by Qiangge.
    #84122
    c4cc
    Customer

    I appreciate your answers, it’s just that I need that fullscreen function being activated via html element being clicked on.

    I don’t want a fullscreen icon in the app itself, but in an html element outside the iframe tag.

    • This reply was modified 14 hours, 5 minutes ago by c4cc.
Viewing 3 posts - 16 through 18 (of 18 total)
  • You must be logged in to reply to this topic.