Log in or register to post comments

show models or play video without detecting targets

May 12, 2013 - 9:51pm #1

Hi,

Is it possible to show 3d models or play video in AR application without detecting target. I want to make an app which is not dependent on any kind of target..

Thanks in advance..

BR,

Sushil

show models or play video without detecting targets

July 18, 2017 - 6:34am #9

Hello ;)

 

Just from my experienced: https://developer.vuforia.com/forum/android/interactive-menu-when-using-ar-camera-or-without-image-target

You can make it with any object you want to keep in view without target - models, videosource, music, UI.

 

BR,

 

Agnieszka

show models or play video without detecting targets

June 18, 2013 - 4:52pm #8

Thanks @AlessandroB I just did something really similar to what you have stated,

show models or play video without detecting targets

June 17, 2013 - 3:00am #7

Imt137,

you can build your custom modelview matrix, it is just a 4x4 matrix representing the position, orientation and scaling of the object with respect to the camera reference frame;

some useful functions to achieve your custom configuration are provided in the SampleUtil.cpp source file in our samples, in particular:

    static void setRotationMatrix(float angle, float x, float y, float z, float *nMatrix);
    
    /// Set the translation components of this 4x4 matrix.
    static void translatePoseMatrix(float x, float y, float z, float* nMatrix = NULL);
    
    /// Applies a rotation.
    static void rotatePoseMatrix(float angle, float x, float y, float z, float* nMatrix = NULL);
    
    /// Applies a scaling transformation.
    static void scalePoseMatrix(float x, float y, float z, float* nMatrix = NULL);

You can use them and combine them in the way you want so to position your object in space in a custom way.

 

show models or play video without detecting targets

June 17, 2013 - 1:31am #6

Hi lmt137,

Using a custom pose matrix it should be accomplished. I achieved the same using Unity Tool but it should be achievable using a hardcoded custom pose matrix though I didnt try this way for myself.

show models or play video without detecting targets

June 15, 2013 - 9:16am #5

AlessandroB wrote:

Hi, if you don't use any image target, than you cannot have any 3D reference frame;

the purpose of the targets is to deliver a Pose, i.e. a 3D reference frame (position and orientation) of an object (the target) with respect to the camera;

that's the basis of Augmented Reaility.

Hi @AlessandroB,

I agree with you. But what if I want to display the model at a fixed pose? I'm building an app that has two modes, in the first one, it shows a 3D model while detecting a target. But the idea is to have a second mode were the user can see a 3D model without having to detect the target. I've almost implemented that, but  I just don't know how can I create a custom Pose Matrix to get rid of the target for the second mode.

What I need to do is to replace this line:

QCAR::Matrix44F modelViewMatrix = QCAR::Tool::convertPose2GLMatrix(trackableResult->getPose());

With a custom pose matrix, do you know if this can be accomplished?

show models or play video without detecting targets

May 13, 2013 - 10:12pm #4

you're welcome

show models or play video without detecting targets

May 13, 2013 - 4:38pm #3

Thanks for your reply AlessandroB. I was just taking my chances :). With your explaination it is clear now why image target is important...
 

show models or play video without detecting targets

May 13, 2013 - 4:50am #2

Hi, if you don't use any image target, than you cannot have any 3D reference frame;

the purpose of the targets is to deliver a Pose, i.e. a 3D reference frame (position and orientation) of an object (the target) with respect to the camera;

that's the basis of Augmented Reaility.

 

Log in or register to post comments