Skip to content

Request for psmove_tracker_get_aimed_position #145

Open

Description

@Splizard

It would be great to be able to get the x, y coordinates on screen of where the PSmove is being aimed at, for example when the move is being used as a gun.
If this needs to be callibrated perhaps an easy way to set the callibration could be added too, such as aiming at the 4 corners of the screen, running a function for each etc.
This would hugely simplify creating apps where you are interacting to the screen with the tracker.

Activity

  1. thp commented on May 25, 2015

    @thp
    Owner

    Good idea. A simple 4-point-calibration should be easy to do. There's even some code that maps the camera position of a controller to screen coordinates with 4-point calibration (see examples/labs/whiteboard/mapping.h).

    Do you have some example application in mind? Might be useful to have an example application as "framework" for implementing and prototyping such support.

  2. Splizard commented on May 26, 2015

    @Splizard
    Author

    Yea it would be nice to have the rotation of the controller taken into account, I haven’t used psmoveapi lately but from what I remember you can only get the screen coordinates but rotating the controller would not make a difference.
    Essentially pointing the move should draw a line towards the screen and where this "hypothetical" line intersects with the screen, this should be the X, Y coordinates.
    Since the camera is not at the same position as the screen this needs to be calibrated accordingly.
    It would be useful for a simple shooting game, so the user can aim down the move, and also in other move applications where it gives a larger degree of movement. (as long as the Move is in view of the camera, you can aim at any point on the screen just by rotating/aiming the controller)

  3. isidoro-80 commented on Nov 26, 2020

    @isidoro-80

    i want to use psmove controller as gun. it does not have to work as a simple pointer but the pseye should detect the position of psmove on the monitor and understand where I am pointing the psmove. are there any projects already done?

  4. thp commented on Dec 5, 2020

    @thp
    Owner

    @isidoro-80 Depending on what you want to do, maybe https://github.com/MooseTheBrown/psmoveinput fits the bill?

  5. isidoro-80 commented on Dec 6, 2020

    @isidoro-80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions