我正在开发一个结合了Vuforia ImageTarget和VideoPlayback的项目。我有N' N' 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];
答案 0 :(得分:4)
看起来您需要选择对象视频,然后应用以下内容: 例如,您选择一个立方体。
这将使立方体旋转180度而不修改任何其他旋转轴&#39;
cube.transform.rotation = new Quaternion(cube.transform.rotation.x, cube.transform.rotation.y, cube.transform.rotation.z, 180);