cancel
Showing results for 
Search instead for 
Did you mean: 

How to draw convex plane using GearVR sdk android studio

Muhammad06
Honored Guest
Currently I am using 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;
}

97bxcngb4zt6.png
1 REPLY 1

Muhammad06
Honored Guest
I will be very thankful ...