视频正在播放

我正在开发一个结合了Vuforia ImageTarget和VideoPlayback的项目。 我有'N'个目标,并且有相应的视频。 对于某些imageTargets,视频会翻转。 我找不到解决此问题的方法。 这是我的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];

看起来像你需要选择对象视频,然后应用这样的东西:例如你选择一个立方体。

这将使立方体旋转180度而不修改任何其他旋转轴'

cube.transform.rotation = new Quaternion(cube.transform.rotation.x, cube.transform.rotation.y, cube.transform.rotation.z, 180);
链接地址: http://www.djcxy.com/p/96019.html

上一篇: Video is playing inverted

下一篇: Using CDN vs Installing library by NPM