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.

mouse/keyboard focus problem

Home Forums Programming mouse/keyboard focus problem

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #10055
    gary
    Customer

    In my app I have a UI loaded in index.html. My Verge3D app is loaded into this via iframe. Is this the right way to do it so I can use keyboard navigation to move the camera and be able to use my html UI? At the moment whenever I click on a ui element keyboard navigation stops working.

    in my app.js…

      function prepareExternalInterface(app) {
        app.ExternalInterface.reFocus = function() {
          document.getElementById('i3d').focus();
          console.log('Firing reFocus');
        }
      }

    And in several puzzles, like enter/exit fullscreen, I’m calling my reFocus function in an attempt to restore focus for keyboard navigation.

    …of course, if somebody has a decent FPS setup, I’m all ears!

    #10090

    Hi,

    This is interesting question, because our Farmer’s Journey game also works inside an iframe, is keyboard controlled yet it does not manifest any issues like that, for example, after clicking the fullscreen button and returning from fullscreen mode.
    We use the following puzzles setup for keyboard controls:

    Can you try to compare your setup with ours and find out if there is any difference?

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

    Chief 3D Verger | LinkedIn | Twitter

    #10095
    gary
    Customer

    My setup is a bit different now. I’m trying to have two camera modes: 1) orbit/overview of scene, and 2) Explore scene (fly camera, no movement). When exploring the scene the user should be able to click objects to animate as well as tween camera between points of interest but it’s not working.

    When switching camera to 2) Explore, objects do not react to click events — no animation or camera tweening. It seems to be a limitation of camera style as only Camera: Orbit allows click events.

    I’ve attached a test demonstration created using Verge3D 2.9.2 and Blender 2.8.

    #10101
    gary
    Customer

    Is there a hack I can use to allow Flying and No Controls camera types to allow mouseclicks to objects in the scene?

    #10110

    Hi,

    We’re reproducing clicks not working with a Fly camera, although it seems to work for No-controls camera. Will investigate this further. Thanks for reporting this!

    Chief 3D Verger | LinkedIn | Twitter

    #10320
    gary
    Customer

    Happy New Year, fellas! Any news about this investigation?

    #10321

    Hi Gary,

    Happy New Year to you too! I created a corresponding entry in our tracker with high priority. Hopefully we’ll be able to fix that in the upcoming 2.10 pre-release builds.

    Chief 3D Verger | LinkedIn | Twitter

    #10330
    gary
    Customer

    Sounds good, thanks for the update Yuri!

    #10459

    FYI, we fixed mouse clicks not working with the Flying camera. The fix will be available with the 2.10 pre3 build in a few days.

    Chief 3D Verger | LinkedIn | Twitter

    #10460
    gary
    Customer

    Perfect, thanks Yuri!

    #10706
    gary
    Customer

    I just tested 2.10 pre3. Works as expected — thanks!

    #10710

    Glad it helped! :good:

    Chief 3D Verger | LinkedIn | Twitter

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