By ayazalavi
on Wed, 10/24/2012 - 12:34
I see video is inverted i.e. upside down when I put camera in front of marker. How to fix it?
I see video is inverted i.e. upside down when I put camera in front of marker. How to fix it?
Videoplayback video inverted
Hi, do you mean that you see the video on texture inverted (with texture attached to the target in 3d space) ?
Videoplayback video inverted
yes video is upside down. Here is the code that binds texture in front of marker. Should I use rotate here?
QCAR::Matrix44F modelViewMatrixVideo =
Videoplayback video inverted
Hi, since the texture is applied to a 3D object (in this case a simple flat rectangle positioned on top of the target), this will follow the reference frame associated to the target, which in turn depends on how the printed paper target is currently oriented on your ta
Videoplayback video inverted
yes your suggestion worked and when I invert target video is playing just fine. But how can I make this to have same orientation as of image target?
Videoplayback video inverted
Hi, the target reference frame is by definition the one associated to the target, so your video should be already in the "same" orientation, unless you mean something special;
Videoplayback video inverted
thanks the code worked and videos have now fine orientation. Now another bug appeared that contents of videos are flipped and mirrored i.e. left became right and right became left.
Videoplayback video inverted
This sounds quite weird; however you can just replace the rotation around Z with a rotation around X instead, and then it should be OK:
SampleUtils::rotatePoseMatrix(180.0f, 1.0f, 0.0f, 0.0f, &modelViewMatrixKeyframe.data[0]);//instead of rotating around Z
Videoplayback video inverted
I tried replacing X as 1.0f and then y as 1.0f. In both cases audio is there but video is gone. Here is my code
QCAR::Matrix44F modelViewMatrixVideo =
QCAR::Tool::convertPose2GLMatrix(trackable->getPose());
Videoplayback video inverted
I strongly suspect this could be a matrix normalization issue due to the scale;
try moving the rotatePoseMatrix() line BEFORE the scalePoseMatrix (i.e. first translate, then rotate and finally scale); I believe this could solve the problem;
Videoplayback video inverted
If I increment angle by 30 degree than frame moves accordingly but issue is NOT with frame but with the way video is displaying on the frame. CONTENTS of the video are flipped upside down. Is this written somewhere in the code that video can be mirrored?
Videoplayback video inverted
Do you think below code could be the issue
JNIEXPORT void JNICALL
Java_com_putitout_buck_VideoPlayback_setProjectionMatrix(JNIEnv *, jobject)
{
LOG("Java_com_putitout_buck_VideoPlayback_setProjectionMatrix");
Videoplayback video inverted
Hi, ok I see;
the flipping in this case comes from some problems with the texture coordinates (so you can remove the rotatePoseMatrix() code that we previously tried, as that's not the issue);
Videoplayback video inverted
I had repititive calls of
glVertexAttribPointer(videoPlaybackTexCoordHandle, 2, GL_FLOAT, GL_FALSE, 0, (
Videoplayback video inverted
Good to hear that it was solved.
Videoplayback video inverted
studying
Videoplayback video inverted
I have the same exact issue, but this function ( glVertexAttribPointer(videoPlaybackTexCoordHandle, 2, GL_FLOAT, GL_FALSE, 0,
(const GLvoid*) &videoQuadTextureCoordsTransformedStones[0]);) is being used only once! the video is still mirrored. Any help?
Videoplayback video inverted
Hi alhammadi_am,
not sure what you are changing in the code, but the video playback sample makes proper use of those functions to have the video non-inverted.
Videoplayback video inverted
Hi,
My problem:
1. I've 2 movies in mp4 format. Lets call them 1.mp4 and 2.mp4
2. I've 2 markers named: 1 and 2. When recogniced video is start plaing on them. Marker 1 => 1.mp4 2=>2.mp4
Ok and problem that makes me crazy ....
Videoplayback video inverted
I switched videos files problem is the same so there is no problem in movie files. <so angry>
Videoplayback video inverted
Hi ARFixer,
do you see the same issue in the VideoPlyback sample ? or just in your application (which I presume is based on VP sample)
?
Videoplayback video inverted
On app that based on VP sample.