thanks
well, i have a view. for a fast start, i first tried to redirect camera view to texture. below is a screenshot. an UV adjustment was needed since as can be expected the created texture has a 2^n size.
the camera view on the back is a texture blitted by jPCT. the debug text in black is part of the texture (printed by OpenCV before image is converted to texture) so it's also blitted.
the red rectangles, axes arrows and and the plane are all 3d objects in jPCT world. the plane uses the new external texture so it also displays the camera view.
the weird thing is, plane also displays the debug text. i cant understand how and why
also I had a repeating GL error 0x502 at
SurfaceTexture.updateTexImage() in logs. after some googling I've found this is caused by an error happening before
SurfaceTexture.updateTexImage(). so I call before updateTexImage:
int error = GLES20.glGetError();
if (error != 0) {
System.out.println("GL error " + error + ": " + GLU.gluErrorString(error));
}
and got:
GL error 1282: invalid operation
if I dont assign this texture to plane but still call
SurfaceTexture.updateTexImage(), the error goes away. i cant see inside of updateTexImage since it's a native method.
any ideas?