-
-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting the initial position of the camera does not work in v2.1.1 #473
Comments
Good catch! |
Even if you should pay attention to the camera position applied on each recomposition instead of just one if the position was applied inside the |
I've also run into this problem (but with the View-based impl. instead of the Compose-based impl.). And reverting back to v2.0.4 is not an option for me because I need to be able to access entities without components (added in v2.1.0 here). I also want the camera to be positioned at a specific angle, and I therefore apply the following transformation on the CameraNode to achieve that:
When I debug this issue and compare between v2.0.4 and v2.1.1, I notice that all transformation properties of the |2.3333333 0.0 0.0 0.0| but in v2.1.1 it's: |1.0 0.0 0.0 0.0| However, I can't find where that property is set or which of the recent, related commits: that have caused this bug. If you point me in the right direction, I could have a look at it! |
Can it perhaps be caused by the fact the now (in v.2.1.x) the (initial) |
I can't have an answer easily between versions but all the complexity around it comes from the missing of a Filament camera manipulator position setter after it has been built. |
Thank you for the reply! I'll take a look at it when I have the time :D |
Fixed in v2.2.0 |
Setting the initial position of the camera using the following code snippet used to work in v2.0.4 but when I apply it in v2.1.0 and above, it doesn't work. This was tested using the
model-viewer-compose
sample in the versions mentioned.Expected Behaviour: Camera looks at the node at a 45 degree angle.
Actual Behaviour: Camera is at the default position and is not affected by the applied position.
The text was updated successfully, but these errors were encountered: