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

Feature: Mesh subdivision #9

Open
Luca3317 opened this issue Jun 28, 2024 · 0 comments
Open

Feature: Mesh subdivision #9

Luca3317 opened this issue Jun 28, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Luca3317
Copy link
Owner

Is your feature request related to a problem? Please describe.
There are animations that would benefit from mesh subdivision.
For example, a wiggle effect can be much more detailed which matters especially on large text. Colors can fade from the center to the extents of the mesh, or characters can be split into pieces.

Describe the solution you'd like
A simple way to subdivide the character meshes, either integrated into TMPAnimator or as a new component.
The mesh modification API would have to be reworked to support both the standard 4 vertex quad mesh and arbitrarily subdivided meshes.
It should be possible to treat a subdivided mesh as a simple quad implicitly, to keep the API simple and compatible with all existing animations.

Additional context
Major potential issue with that right now:

  • Meshes are limited to 16 bit indexing / 65532 vertices. Subdividing a mesh so that it exceeds this limit means the mesh will have to be split into multiple smaller submeshes with TMP_SubMesh(UI). Im not sure how to add such submeshes, as the collection in TextmeshProUGUI is private and (after some quick scanning) there seems to be no public methods that allow you to modify this list without destroying the TMP_Text and creating a new one. If anyone reads this and knows how to accomplish this please let me know :D
@Luca3317 Luca3317 added the enhancement New feature or request label Jun 28, 2024
@Luca3317 Luca3317 pinned this issue Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant