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

Fluid simulation as background #48

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

Fluid simulation as background #48

wants to merge 7 commits into from

Conversation

smolck
Copy link
Owner

@smolck smolck commented Nov 9, 2020

Kind of like power mode but . . . different ;)

ATM only works when pressing spacebar in normal mode . . . for now just a POC. Problems include: going into insert mode and pressing spacebar breaks things; isn't tied to position of characters being typed or the cursor position; only enabled when running require('/absolute/path/to/build/support/turbulent-flow.js') in console; and more.

Here's a screencast from an earlier POC: https://streamable.com/h16d5k (note that the dropped frames are from trying to record and run the animation at the same time; runs fairly smoothly when not recording)

Uses code from here: https://paveldogreat.github.io/WebGL-Fluid-Simulation/

@smolck smolck force-pushed the turbulent-flow branch 2 times, most recently from b4fdd53 to 51d30f7 Compare November 16, 2020 21:53
Remove new module that uses src/render/webgl/utils.ts; for
now will just convert/work on the original turbulent-flow
file from the GH repo.
Also migrates style, so stuff like `function blah() { ... }`
becomes `const blah = () => { ... }`
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.

None yet

1 participant