GithubHelp home page GithubHelp logo

plumpmath / snow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azmisov/snow

0.0 0.0 0.0 5 MB

OpenGL and Houdini snow simulation (material point method)

License: GNU General Public License v2.0

CMake 0.22% C++ 92.45% C 6.77% Shell 0.10% Makefile 0.47%

snow's Introduction

Snow Simulation

This is an implementation of "A Material Point Method for Snow Simulation" (Stomakhin et al., 2013). There is a 2D version for OpenGL and a 3D version for Houdini.

Demo video is on YouTube:

Demo video

2D Simulator

You may need to modify the project build settings for it to work. Build dependencies:

Prebuilt versions of these libraries are included for debian based systems (x86-64).

Controls

  • Click: adds a point for a snow shape
  • Enter: finishes previous snow shape and starts a new one
  • C: allows you to create a circle shape (first click sets origin, second click sets radius)
  • F12: converts snow shapes to particles and starts the simulation
  • ESC: stops the simulation and removes all snow

3D Simulator

A Houdini digital asset, ramshorn_fx_mpm_snow_otl_stable.otl has been created for simulation and rendering setup. You'll need to install this otl as well as the snow solver node plugin. Source code is in SIM_SnowSolver.c. Run setup.sh to build the plugin (Note: you may need to modify setup.sh to point to your houdini installation directory). See tutorial.txt and tutorial.hipnc for a basic setup.

snow's People

Contributors

azmisov avatar jmoborn avatar melissaedge avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.