Log in or register to post comments

Using target as a 3D positioning device for multiplayer game

July 31, 2017 - 8:34am #1

I'm building a multiplayer game, where a desktop computer is projecting a target onto a building

and players point their smartphones at the building and click to interact.

 

The message is sent to the desktop and the result appears on the projection.

Vuforia is used mainly to determine the 3D positions of the players relative to target.

 

I  get the position and rotation of the devices and my projectiles are landing correctly.

But I can not manage to align the trajectory correctly.

Please refer to the videos below to see what I mean.

I used the same settings on the camera on ARCamera and my main scene camera.

 

 

Do you have any insights?

Using target as a 3D positioning device for multiplayer game

August 9, 2017 - 1:41am #5

I'm just getting the position of the ARCamera relative to the target.

Using target as a 3D positioning device for multiplayer game

August 2, 2017 - 2:24pm #4

What data are you using to draw this ray and calculate the trajectory?

Thanks,

-Vuforia Support

Using target as a 3D positioning device for multiplayer game

August 1, 2017 - 1:23am #3

Ideally I would like the ball to seem like it is coming physically from the device, from the perspective of a user.

As is, appart from one "sweet spot" the ball seems to be following a slightly skewed trajectory, but ultimately landing in the right place.

Please refer to the second video, I am looking for an effect like at second 26.

The problem is after second 26 you will notice that I point the crosshairs on top of the building,

but instead of the ray going from the bottom up as I would expect it is coming seemingly from somewhere top down.

 

I have a hunch that this might be due to some camera settings, but I'm having a hard time wrapping my head around why this is happening like this.

I assume Vuforia is working correctly since the hit point of the ray seems to be correct.

 

Using target as a 3D positioning device for multiplayer game

July 31, 2017 - 3:34pm #2

Hello udvaritibor,

I'm not 100% clear on what the issue is. Is the trajectory from the red raycast incorrect, or is it the trajectory of the projectily once fired down the red raycast? Do you believe the issue you are having is due to data pulled from Vuforia?

Thanks,

-Vuforia Support

Log in or register to post comments