You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
Anushree278
changed the title
Object image is black when attaching to target image and i have not used firebase and rubberstamp
texture of image is black when attaching to target image and i have not used firebase and rubberstamp
Jun 11, 2019
@Anushree278 Sorry for the late reply, here is question about how to load texture properly. If correctly-loaded Bitmap object pass into TextureHelper.updateBitmap then texture will update. Also check OpenGL samples with texture processing, maybe your OpenGL build and target device gives inappropriate results.
public void render() {
GLES20.glClearColor(1.f, 1.f, 1.f, 1.f);
GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);
// bitmap = pairObjectPool.checkOut(curLesson).getBitmap();
bitmap = imageProcessing.generateBitmap();
TextureHelper.loadTexture(mainActivity.getApplicationContext(),"/data/data/com.example.augmentedrealityapp"+"/"+objectdata);
TextureHelper.updateBitmap(bitmap);
}
else {
// });
bitmap = existingLesson.getBitmap();
TextureHelper.updateBitmap(bitmap);
}
}
}
imageRenderer.render(camera.projectionGL(0.2f, 500.f), targetInstance.poseGL(), imagetarget.size());
}
}
previusTarget = currentTarget;
The text was updated successfully, but these errors were encountered: