Log in or register to post comments

Extracting Image Target Positions Relative to Eachother

January 26, 2018 - 10:25am #1

Hi all!



I am researching technologies to make an app used for tabletop RPGs and am wondering if what I hope to achieve is viable. 



The premise is that User 1 will have multiple 2d image targets on a table representing walls, monsters and player characters - with 3d models rendered on top of these targets. I need to be able to record where each target is relative to eachother using the camera, so that the same images can be replicated and projected onto another surface on another device without these markers. The positions of the image markers relative to eachother will be sent to user 2 for rendering.

Is it possible to extract the data of each image target's position in relation to the camera from the VR camera? If so where would I look to get this data.

Is it also possible with Vuforia to render models without image targets in the camera's view, but just the information of where they should be?



Thanks in advance!

Chris

Extracting Image Target Positions Relative to Eachother

January 27, 2018 - 7:45pm #4

This is more of a Unity question since the ar markers are just normal game objects.  Some of the public methods in the transform class are probably going to come in handy like InverseTransformPoint.  https://docs.unity3d.com/ScriptReference/Transform.html





 

Extracting Image Target Positions Relative to Eachother

January 27, 2018 - 2:52am #3

I'm using Unity, it seems like the easiest way to go about things.



Do you know where I should look to find the coordinate information of the markers the camera finds?

Extracting Image Target Positions Relative to Eachother

January 26, 2018 - 10:37am #2

Yes, I believe everything you are asking should be possible. One image target will represent the coordinate system of the world.  After that you find the coordinates of all the additional markers within the local space of the marker you've determined to be the world.  Are you doing this native or Unity?  Highly suggest Unity, it'll have everything you need to figure out your transforms built in.



 

Log in or register to post comments