OPENGL / ES 3D model, enlarged, does not pan in UIScrollView

I have a 3D model presented in a UIView. When I clamp a model, it scales correctly, but when I zoom in, I would like to pan / scroll the view so that I can see parts of the model that are out of view. I switched UIView to UIScrollView, and on the pinch event the content size is updated using a scale factor. This works great, and now I can scroll through the view. My problem is that panning the outer borders of the content view still shows that the 3D model is still cropped by the size of the original view. Hope this makes sense ...

Does anyone have an idea what might be needed to visualize the enlarged parts of the chair that should now be visible (after panning)?

0
source share
1 answer

I managed to get this working after setting UIView.bounds, as well as the size of the contents of the UIScrollView. That is, scrollview contains a uiview that contains a 3d model. I resized the scroll, but not uiview. They both had to be installed in order for this to work.

0
source

All Articles