Skip to content
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

Recreate mesh if canvas size changed #14

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vincentfretin
Copy link
Collaborator

I have a specific use case of a wrist UI that change based on the context. If I'm close to a car I can change the colors of the car for example.
For this to work I need to recreate the mesh. I tried at first to recreate only the geometry but couldn't make it work, it was indeed bigger but still the old render and I didn't figure why, so I recreate the mesh completely. I'm happy with it.
There is also a PR about that issue but it was not correct mrdoob/three.js#23662

Capture d’écran du 2023-04-20 12-27-31

Capture d’écran du 2023-04-20 12-27-14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant