Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-130603

Sugestion to create Quick3D game controller for View3D

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • None
    • Quick: 3D
    • None

    Description

      Hi

      I am developing a Game controller for Quick3D, similar to WASD but more advanced, with options to move and rotate a target node, while the camera is following the target, like a first person shooter.

      The camera has a nice drift effect while the target is being moved / rotated.

      The API is very easy to use, just set the View3D camera with the GameController built in camera, and set the GameController target property with the target Node to be controlled.

      Check the following demo video of the GamController in action https://youtu.be/i3HdaLy1zRc

      and a source code example here https://bitbucket.org/joaodeusmorgado/gamecontroller/src/main/

      Find the attach GameController project files.

      Target is controlled with keyboard and mouse, note it is still wip, the keyboard controlls are pretty much done, the mouse controlls still needs some development, and overall documentation. 

      Let me know if you guys think this could be a good utility to be added to QtQuick3D.Helpers and I will keep developing it and will come back with some questions.

      Cheers

      Joao de Deus

       

      API example:

       

      View3D {
              id: view
              anchors.fill: parent
              camera: control.camera
              Node {
                  id: originNode
                  NodeCustomGeometry {
                      id: nodeTarget
                  }
              }//originNode
          }//View3D
          GameController {
              id: control
              target: nodeTarget
              fpsCamera: true // if the camera should act like a fps
          }
      } 

       

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            johngod Joao de Deus Sena Morgado
            johngod Joao de Deus Sena Morgado
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes