Skip to content

[New Feature] Add grid mode #12

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

Closed
sr4dev opened this issue Dec 21, 2020 · 8 comments
Closed

[New Feature] Add grid mode #12

sr4dev opened this issue Dec 21, 2020 · 8 comments

Comments

@sr4dev sr4dev changed the title Add grid mode [New Feature] Add grid mode Jan 15, 2021
@PolyTimotheos
Copy link

Would be cool to use this feature to enable more performance friendly triangles. Currently often thin and long triangles are generated which are not good for rendering performance. Having a few additional vertices within the sprite shape that the boundary vertices can connect to could help with that. Also where can i buy this good sir a coffe/beer for providing this amazing addon free of charge ? <3

@sr4dev
Copy link
Owner Author

sr4dev commented Feb 20, 2021

@PolyTimotheos
When I first created this library, I used Poly2tri for triangulation.
It made triangles with good performance then other libraries.
But I found that Poly2tri sometimes causes errors.
So I changed triangulation library to LibTessDotNet.

Here is good examples about triangulation.
image
image
https://forum.unity.com/threads/tessellation-algorithms-for-polygons.228051/

I want to add the feature for the user to swap triangulation library to Poly2tri.
However, the priority of this task is low.

@heshuimu
Copy link

But I found that Poly2tri sometimes causes errors.

Curious what the errors are. Are they Exceptions or improper tessellation?

@sr4dev
Copy link
Owner Author

sr4dev commented Feb 28, 2021

@heshuimu Both. But I don't remember what exception was...

@sr4dev
Copy link
Owner Author

sr4dev commented May 25, 2021

I have no much time.
I gave up on adding a new feature.

@sr4dev sr4dev closed this as completed May 25, 2021
@konistehrad
Copy link
Contributor

I'd love to pick this up if you're interested. Out of curiosity, do you still have the binding layer you used to interface with poly2tri?

@sr4dev
Copy link
Owner Author

sr4dev commented Feb 1, 2024

Regrettably, there is no longer any code related to Poly2Tri. The commit log of this project was too messy, so I recently squashed all the commits. 😭

@konistehrad
Copy link
Contributor

No problem!

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

No branches or pull requests

4 participants