webaverse / app

Web metaverse client
https://app.webaverse.com
MIT License
343 stars 207 forks source link

character portrait position in diorama #3713

Closed codenametiger closed 2 years ago

codenametiger commented 2 years ago

When chatting with another player, the diorama in the character hups window for the remote player is buggy. The character is out of frame in the character hups for remote player.

Describe your changes

To set up side camera in diorama.js, position, quaternion and scale is obtained from target.matrixworld.decompose which does not seem to be updated for remote player. So target would need updateMatrixWorld to update position, quaternion and scale

What are the steps for a QA tester to test this pull request?

1.Go to 'https://local.webaverse.com/?src=.%2Fscenes%2Fprototype.scn&room=fLgYz' 2.Join another player using same link 3.Press 'Enter' to start chat for any one player and observe character hups window showing character diorama and chat on another player screen.

  1. Diorama view for remote player must show the character within the frame for chat character hups window

Issue ticket number and link

https://github.com/webaverse/app/issues/3702

Screenshots and/or video

image_1 image_2

Checklist before requesting a review