Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9207667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:26:17+00:00 2026-06-18T00:26:17+00:00

i m new in android -ndk AR so need some help i m using

  • 0

i m new in android -ndk AR so need some help i m using Virtaul button sample (from Vuforia).

can i get the virtual touch to physical touch

like if i touch on the red botton on screen then tea pot changes to red

and if touch the blue button tea pot changes to blue tea pot ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:26:18+00:00Added an answer on June 18, 2026 at 12:26 am

    I figured it out at my own
    Need a complex caclution and
    Used the Following Formula to work with it

     QCAR::CameraDevice& cameraDevice = QCAR::CameraDevice::getInstance();
            const QCAR::CameraCalibration& cameraCalibration = cameraDevice.getCameraCalibration();
            /////////////////////////////////////////////////////////Tyre//////////////////////////////////////////
            QCAR::Vec2F cameraPoint = QCAR::Tool::projectPoint(cameraCalibration, trackable->getPose(), QCAR::Vec3F( -97.68, -15.93, 0.f ));
            QCAR::Vec2F cameraPoint1 = QCAR::Tool::projectPoint(cameraCalibration, trackable->getPose(), QCAR::Vec3F( -28, -15.93, 0.f ));
            QCAR::Vec2F cameraPoint2 = QCAR::Tool::projectPoint(cameraCalibration, trackable->getPose(), QCAR::Vec3F( -97.68, -50.52, 0.f));
            QCAR::Vec2F cameraPoint3 = QCAR::Tool::projectPoint(cameraCalibration, trackable->getPose(), QCAR::Vec3F( -28.f, -50.52, 0.f));
    
            //////////////////////////////////////////////////HeadLight////////////////////////////////////////////////////////////
            QCAR::Vec2F cameraPoint4 = QCAR::Tool::projectPoint(cameraCalibration, trackable->getPose(), QCAR::Vec3F( -52.28, 53, 0.f ));
            QCAR::Vec2F cameraPoint5 = QCAR::Tool::projectPoint(cameraCalibration, trackable->getPose(), QCAR::Vec3F( -21.f, 53.f, 0.f ));
            QCAR::Vec2F cameraPoint6 = QCAR::Tool::projectPoint(cameraCalibration, trackable->getPose(), QCAR::Vec3F( -53.f, -8.f, 0.f));
            QCAR::Vec2F cameraPoint7 = QCAR::Tool::projectPoint(cameraCalibration, trackable->getPose(), QCAR::Vec3F( -21.f, -8.f, 0.f));
            //////////////////////////////////////////////////////Indicator//////////////////////////////////////////////////////////////////////////////
            QCAR::Vec2F cameraPoint8 = QCAR::Tool::projectPoint(cameraCalibration, trackable->getPose(), QCAR::Vec3F(-4.f, -94.f, 0.f ));
            QCAR::Vec2F cameraPoint9 = QCAR::Tool::projectPoint(cameraCalibration, trackable->getPose(), QCAR::Vec3F( 18, -94, 0.f ));
            QCAR::Vec2F cameraPoint10 = QCAR::Tool::projectPoint(cameraCalibration, trackable->getPose(), QCAR::Vec3F(-4.f, -71.f, 0.f));
            QCAR::Vec2F cameraPoint11 = QCAR::Tool::projectPoint(cameraCalibration, trackable->getPose(), QCAR::Vec3F( 18.f, -71.f, 0.f));
    
            //////////////////////////////////////////////////////////////////////////////////////////////////////////////
    
            QCAR::Vec2F screenPoint=  cameraPointToScreenPoint(cameraPoint);
            QCAR::Vec2F screenPoint1=  cameraPointToScreenPoint(cameraPoint1);
            QCAR::Vec2F screenPoint2=  cameraPointToScreenPoint(cameraPoint2);
            QCAR::Vec2F screenPoint3=  cameraPointToScreenPoint(cameraPoint3);
            //////////////////////////////////////////////////////////////////
            QCAR::Vec2F screenPoint4=  cameraPointToScreenPoint(cameraPoint4);
            QCAR::Vec2F screenPoint5=  cameraPointToScreenPoint(cameraPoint5);
            QCAR::Vec2F screenPoint6=  cameraPointToScreenPoint(cameraPoint6);
            QCAR::Vec2F screenPoint7=  cameraPointToScreenPoint(cameraPoint7);
            //////////////////////////////////////////////////////////////////
            QCAR::Vec2F screenPoint8=  cameraPointToScreenPoint(cameraPoint8);
            QCAR::Vec2F screenPoint9=  cameraPointToScreenPoint(cameraPoint9);
            QCAR::Vec2F screenPoint10=  cameraPointToScreenPoint(cameraPoint10);
            QCAR::Vec2F screenPoint11=  cameraPointToScreenPoint(cameraPoint11);
            //////////////////////////////////////////////////////////////////
            blY_Tyre=screenPoint.data[0];
            blX_Tyre=screenPoint.data[1];
            brY_Tyre=screenPoint1.data[0];
            brX_Tyre=screenPoint1.data[1];
            tlY_Tyre=screenPoint2.data[0];
            tlX_Tyre=screenPoint2.data[1];
            trY_Tyre=screenPoint3.data[0];
            trX_Tyre=screenPoint3.data[1];
            //////////////////////////////
            blY_Lite=screenPoint4.data[0];
            blX_Lite=screenPoint4.data[1];
            brY_Lite=screenPoint5.data[0];
            brX_Lite=screenPoint5.data[1];
            tlY_Lite=screenPoint6.data[0];
            tlX_Lite=screenPoint6.data[1];
            trY_Lite=screenPoint7.data[0];
            trX_Lite=screenPoint7.data[1];
            //////////////////////////////
            blY_Miror=screenPoint8.data[0];
            blX_Miror=screenPoint8.data[1];
            brY_Miror=screenPoint9.data[0];
            brX_Miror=screenPoint9.data[1];
            tlY_Miror=screenPoint10.data[0];
            tlX_Miror=screenPoint10.data[1];
            trY_Miror=screenPoint11.data[0];
            trX_Miror=screenPoint11.data[1];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to implement some functions into an Android application using NDK and thus
I am pretty new to using android ndk. Is it possible to use android/
I am new to Android NDK. Can I download the latest NDK and target
when i am creating new android project from visual studio 2010 it gives the
i am creating a new android application.i am using the table layout. I have
Hi I am new to android NDK Devlopment.I downloaded Android NDK 4 for windows.I
Hi I am new to android Programming and NDK.Yet i am not clear with
I'm new to the Android NDK. I want to know what is the benefit
I'm new to Android's NDK and I don't understand the differences between static and
I'm developing a library in c++ using the android NDK. Actually i created my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.