Skip to content

docs: Add fluid simulation based image distortion example #1181

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

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

Conversation

reczkok
Copy link
Collaborator

@reczkok reczkok commented Apr 22, 2025

No description provided.

Copy link

github-actions bot commented Apr 22, 2025

pkg.pr.new

packages

pnpm i https://pkg.pr.new/software-mansion/TypeGPU/typegpu@1181
pnpm i https://pkg.pr.new/software-mansion/TypeGPU/typegpu@d928df2e6ca95eafe9be62066cd18a24119456f9

benchmark
view benchmark

commit
view commit

@reczkok reczkok force-pushed the docs/stable-fluids branch 4 times, most recently from f9b2638 to 43a643a Compare April 22, 2025 16:10
reczkok added 4 commits April 24, 2025 11:10
Decouple simulation resolution (SIM_N) from display resolution (N).
Add 'image' visualization mode which distorts a background image
based on the ink field gradient.
Remove explicit boundary condition enforcement pass.
Set linear sampler to clamp-to-edge addressing. (instead of boundry pass - it is leaky but much faster)
- Offload brush force/ink handling from CPU to GPU compute kernel
- Add BrushParams struct and uniform buffer for brush state
- Remove writeSourceTextures, update main loop to dispatch brush compute
- Replace PingPong with DoubleBuffer utility class
- Rename visualization option/vars from "force" to "velocity"
- Minor simulation param tweaks and code cleanup
- Update type signatures for bind group entry inference
@reczkok reczkok force-pushed the docs/stable-fluids branch from 43a643a to c09c37e Compare April 24, 2025 09:10
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