By PSPiroz
on Tue, 10/17/2017 - 16:20
Hi there,
The problem is simple,
In vuforia AR the camera keeps "shooting" a plane that renders the video feedback from device's (smart phone) camera.
If the camera "gets" the image target somewhere inside the feedback video, it renders the 3d augmentation in front of the image target of the video (not quit in front of it - but where we have set it relatively with the image target).
Anyway,
Is there any way / method / script that can inform us about the exact position (coordinates) of the image target that is on the plane (/ screen / video) ?
Thanx
I think this more of a Unity
I think this more of a Unity problem than a Vuforia one. Would this work for your situation?
https://docs.unity3d.com/ScriptReference/Camera.WorldToScreenPoint.html
No, no, no...
No, no, no...
Not for touch input. As you can see on uploaded image I want the position of the distinguished image-target on the input video frame.
Lets say I run a vuforia app. and think that screen measurement where upper left corner is (0,0) and down right corner is (1,1)
Hmm, that link doesnt have
Hmm, that link doesnt have anything to do with touch input. It transforms a world space coordiante (x,y,z) to screen space (x,y) which is what I thought you needed. You feed in the image target transform and get back where it exists on the screen.
dpizzle wrote:
[quote=dpizzle]
Wiils wrote:
[quote=Wiils]
[quote=dpizzle]
Thank you for that, I get it.
Thank you for that, I get it.
What I really wanted was the image target 's coordinates, as it appears in the background video, on the background plane.
Also, Region Capture source
Also, Region Capture source incorporates some code that is similar to what you are doing. https://github.com/maximrouf/RegionCapture
Whether it helps, not sure, didn't quite understand your use case, but browse through it and you might find something useful. Good luck.