m-r-davari / flutter_3d_controller

The most complete Flutter package for rendering interactive 3D models in various formats (GLB, GLTF, OBJ, FBX), with the ability to control animations, textures, camera, and more.
https://pub.dev/packages/flutter_3d_controller
MIT License
107 stars 14 forks source link

Unable to rotate the object after some time. #26

Closed gputhige closed 1 month ago

gputhige commented 2 months ago

Hi Great Plugin. Better than others I tried so far. I have encountered a few issues.

On load, the model can be rotated, panned and scaled. However, once the model is scaled (using two fingers vertically), the model can no longer be rotated. Even the zoom function seems to erratic. Even after trying the cameraOrbitReset, the problem continues.

Is there anything I am doing wrong?

m-r-davari commented 2 months ago

Hi, Thank you for reporting issue, could you please if I understand it correctly, when you try scale or rotating during the model loading, after model loads then rotating will not work properly?! if Its not correct then please give me exact scenario cause I need to reproduce it

gputhige commented 2 months ago

Thanks for the quick revert. The model loads fine and at the start. After the load, when I rotate, it rotates fine. Same case with scale up and down (zoom up and down), works perfectly fine. However, after rotating/scaling it, suddenly the rotation function stops. I can still scale and pan the mesh. Also, the scaling function is not as smooth as the first time (immediately after load). I am unable to identify the exact event which triggers this, as it happens at different times. Otherwise, its perfectly meets my requirement.

m-r-davari commented 2 months ago

Thanks, I'm working on it you have this issue on iOS right? did you experience this issue with web or android?

gputhige commented 2 months ago

This was on Android Phone.

m-r-davari commented 2 months ago

I found the cause, it takes too much effort but I almost fixed it 💪🏼, will be release in next version. I will notify here when I released next version

gputhige commented 2 months ago

Good News. Thanks for the effort. Looking forward to the new release.

m-r-davari commented 1 month ago

Issue has been fixed with Gesture Interceptor feature released in v2.0.0. ✅

Flutter3DViewer( activeGestureInterceptor: true, )

Checkout latest version

gputhige commented 1 month ago

Thanks for the quick action. Much appreciated. Will update to the latest version.