08-25-2016 03:28 AM
FrameLayout
to put it in GVRSceneObject
that assumes that my pdf bitmap image is presented on a flat plane. This leads to the perspective problem shown in the left side of the attached drawing where the far-away text becomes too small to read. i need to present the images upon a convex plane like the one on the right where the text is readable at all positions.I am using below android function to draw the GVR scene thats draw plan Screen as at left of below image but i need that is on right side.private GVRCylinderSceneObject createCylinderObject(GVRContext gvrContext) {
GVRFrameLayout frameView = mActivity.getFrameLayoutLeft();
GVRViewSceneObject webObject = new GVRViewSceneObject(gvrContext,
frameView, 5.0f,8.0f);
webObject.setName("PDF Viewer");
webObject.getRenderData().getMaterial().setOpacity(1.0f);
webObject.getTransform().setPosition(0.0f, 0.0f, -4.0f);
GVRCylinderSceneObject cylinderObject = new GVRCylinderSceneObject(
gvrContext, false);
cylinderObject.addChildObject(webObject);
return cylinderObject;
}
08-25-2016 03:29 AM