Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for psmove_tracker_get_aimed_position #145

Open
Splizard opened this issue Nov 26, 2014 · 5 comments
Open

Request for psmove_tracker_get_aimed_position #145

Splizard opened this issue Nov 26, 2014 · 5 comments

Comments

@Splizard
Copy link

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.

@thp
Copy link
Owner

thp commented May 25, 2015

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.

@Splizard
Copy link
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)

@isidoro-80
Copy link

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?

@thp
Copy link
Owner

thp commented Dec 5, 2020

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

@isidoro-80
Copy link

isidoro-80 commented Dec 6, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants