Vuforia Videoplayback problem - video plays inverted

Im working on a project combining Vuforia ImageTarget and VideoPlayback. I have an ā€œNā€ number of targets, and you have relevant videos. For some graphics, the video is upside down. I can not find a solution for this problem. Here is my VideoPlaybackRenderer

int videoPlaybackTextureID[] = new int[VideoPlayback.NUM_TARGETS]; // Keyframe and icon rendering specific private int keyframeShaderID = 0; private int keyframeVertexHandle = 0; private int keyframeNormalHandle = 0; private int keyframeTexCoordHandle = 0; private int keyframeMVPMatrixHandle = 0; private int keyframeTexSampler2DHandle = 0; // We cannot use the default texture coordinates of the quad since these // will change depending on the video itself private float videoQuadTextureCoords[] = { 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, }; private Float videoQuadTextureCoordsTransformed[] = {0.0f, 0.0f, 1.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f,}; List<Float[]> videoQuadTextureCoordsTransformedList = new ArrayList<Float[]>(); // Trackable dimensions Vec3F targetPositiveDimensions[] = new Vec3F[VideoPlayback.NUM_TARGETS]; 
+7
android android-studio vuforia
source share
1 answer

it looks like you need to select a video of an object and then apply something like this: For example, you select a cube.

this will rotate the cube 180 degrees without changing any other axis of rotation

 cube.transform.rotation = new Quaternion(cube.transform.rotation.x, cube.transform.rotation.y, cube.transform.rotation.z, 180); 
+4
source share

All Articles