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

Text to collider #7

Draft
wants to merge 50 commits into
base: main
Choose a base branch
from
Draft

Text to collider #7

wants to merge 50 commits into from

Conversation

Vrixyz
Copy link
Contributor

@Vrixyz Vrixyz commented Mar 14, 2025

Screencast from 03-14-2025 11_30_48 AM

This could be used to create a demo similar to taichi mpm's text particles:

taichi mpm text particle

image

How it works

  • print particles from an example through read_particles_positions
    • TODO: this would benefit being an exposed function from the library.
  • print those positions in a file, so we can use that file to color it in another step.
    • It's made in 2 steps to give the opportunity to debug the positions, and avoid coupling coloring and the example. A script could be made if desirable. In particular, a simulation not throttled by rendering would be interesting.
  • The new package text_to_collider handles the logic for detecting positions inside a text, and the example color_to_position can be launched to obtain the colors for the positions previously saved.
  • once colors are created, they can be retrieved from an example: https://github.com/dimforge/wgsparkl/pull/7/files#diff-ec6848f5bd6e2e287e9dd3cefbc75f325b01e48a827d65c9b66fa98cef7c11d5R29-R35

sebcrozet and others added 30 commits January 25, 2025 16:43
Comment on lines +1 to +6
# Notes

banana example:

- oneway+dynamic coupling makes the knife going places (bouncing weirdly).
- workaround: not use dynamic, it wasn't planned anyway.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to remove

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.

2 participants