I am using rajawali library for loading .obj file.
My .obj rendering perfectly fine but not able to apply pinch and zoom functionality to it.
I am using rajawali library for loading .obj file.
My .obj rendering perfectly fine but not able to apply pinch and zoom functionality to it.
Easy way to achieve it by using ArcballCamera
ArcballCamera arcball = new ArcballCamera(mContext, ((Activity)mContext).findViewById(R.id.linear_layout));
arcball.setTarget(object3D); //your 3D Object
arcball.setPosition(0,0,4); //optional
//arcball.setScreenMappingRatio(-1); // Not yet merged at master branch as of now
getCurrentScene().replaceAndSwitchCamera(getCurrentCamera(), arcball);
Have solved using ScaleGestureDetector.
Following is the sample code: