I am new in OpenGl Devloper,i want to render 3d model in OpenGl android so i choose min3d framework library.
I want to Pan Zoom in zoom out functionality for my model ,like camera zoom in zoom out in min3d
like , i have 3dmodel of lady and i want to zoom out her face any solution without scale object?
You need to change the camera position. I suggest you define some additional parameters
centeranddistancesince you want to pan.When you have a zoom gesture you simply apply zoom scale to distance
distance *= scale(ordistance = originalDistance*scaledepending on the implementation).On pan you simply move the
centerby distancescenter.x += (newXOnScreen-oldXOnScreen)*speedFactorandcenter.y += (newYOnScreen-oldYOnScreen)*speedFactor. The speed factor may be constant here (play around a bit with it) but it might be best to multiply it by a zoom scale as well so that if it is very close the center will move less.Now that you have these 2 parameters you need to apply them to the camera. Assuming you have a model position at
(0,0,0):