Issue with Implementing Trackball Movement and transformToUnitCube in Google Filament Library #8354
RajatDBazaar
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using the Google Filament library to render 3D models in our Flutter app. By default, the library supports turntable movement for interacting with the model, but we require trackball movement for more flexible interactions.
To achieve this, we implemented custom user interaction logic for rotation and zooming. While this works well for most use cases, we are encountering an issue with the transformToUnitCube() function when using our custom interaction method:
Our current approach involves applying transformations (rotation and scaling) manually using a custom method. However, the problem seems to arise from a misalignment between our custom transformation logic and the transformToUnitCube() function.
Here’s a summary of our setup:
We would appreciate guidance on the following:
Below is the relevant snippet of our implementation for reference:
Beta Was this translation helpful? Give feedback.
All reactions