Hi,
In our app, we took the code from Dominoes sample for calculating if user tap on the targets.
It works quite ok, until we use cloud recognition with vertical scanline effect.
It seems the way to adjust AR view is different from what we used before.
The difference seems causing the touch calculation function inaccurate.
In our app we use these two functions from Dominoes sample
- void projectScreenPointToPlane(QCAR::Vec2F point, QCAR::Vec3F planeCenter, QCAR::Vec3F planeNormal, QCAR::Vec3F &intersection, QCAR::Vec3F &lineStart, QCAR::Vec3F &lineEnd)
- bool linePlaneIntersection(QCAR::Vec3F lineStart, QCAR::Vec3F lineEnd, QCAR::Vec3F pointOnPlane, QCAR::Vec3F planeNormal, QCAR::Vec3F &intersection)
I'm not very familiar with these functions.
Could someone please tell me how to fix it?
Thanks!
regards,
Mason Hsiung
We have not tested the
We have not tested the Dominoes sample with CloudReco, and you are right in that the CloudReco sample has been created differently.
Hi Nalins, Thanks, I will
Hi Nalins,
Thanks, I will check the source code more.
Thanks again!
regards,
Mason Hsiung