Help, how build easyar application with crs in unity for andriod

0 votes
asked Jul 18, 2019 by ranjith007 (170 points)
retagged Jul 18, 2019 by ranjith007
Hi Folks,

I am trying to build an ar application with crs in unity. I download easyar3.0 sample package, import it into unity, open  HelloAR_ImageTarget_Cloud scene. I entered all apkkeys, sever keys, cloud key, cloud secret all are set.

But now i dont kenow how set imge target(3d content that render after tracking ), its confusing for me. do i need to add image target object with script.I am stuck here plz guys help me.


1 Answer

0 votes
answered Jul 23, 2019 by ag3OlbMfIwtXAlq (480 points)
selected Jul 24, 2019 by ranjith007
Best answer
maybe you can set a meta when you create a cloud image target, you can get the meta and according the meta to make a arContent.
commented Jul 23, 2019 by ranjith007 (170 points)
edited Jul 23, 2019 by ranjith007
Hi ag3OlbMfIwtXAlq thanks for your Reply.

Can you please guide me, how to get url form meta file.(i.e how to read meta).
For example - i create a cloud database, in this database i upload a meta file with url.
now how to get this url in unity when target tracked .

String meta = target.meta();
I know we can do this , but this returns only meta file name or id i am not sure but its not return url .
So please tell me how we can get meta file details

commented Jul 24, 2019 by ag3OlbMfIwtXAlq (480 points)
try input content not file.
commented Jul 24, 2019 by ranjith007 (170 points)
edited Jul 24, 2019 by ranjith007
Hi I got Solution

Actually we have decode the string into bytes then we can get details of meta file.
Like this

byte[] mbyte = System.Convert.FromBase64String(target.meta());
   string meta = Encoding.UTF8.GetString(mbyte);
   print("meta is = "+ meta);
it will return exactly meta file

Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.