Code Monkey home page Code Monkey logo

clothsimulation-opengl's Introduction

ClothSimulation-OpenGL

Cloning the project

This project uses git submodules, so clone with:

git clone --recurse-submodules https://github.com/dominikcondric/ClothSimulation-OpenGL.git

About the project

Project contains a cloth simulation written in C++/GLSL with minimal dependencies with a goal of understanding computer simulation and related subjects such as mathematical models behind simulations as well as numerical integration methods. Mathematical model behind this cloth simulation is a mass-spring model based on Newtonian mechanics with addition of external forces of gravity and wind acting on the cloth. Integration is done using Verlet integration method with variable timestep so damping force is adaptive to stabilize the simulation. Scene also contains a sphere that collides with the cloth as well as point light source and skybox. All physics computation is done on the CPU, but that could be transferred to GPU in the future.

Controls

Right arrow - moves sphere in positive x direction of a scene camera
Left arrow - moves sphere in negative x direction of a scene camera
Up arrow - moves sphere in positive z direction of a scene camera
Down arrow - moves sphere inn negative z direction of a scene camera
Right shift - moves sphere in positive y direction of a scene camera
Right control - moves sphere in positive y direction of a scene camera
W - moves camera in positive z direction of a scene camera
A - moves camera in positive x direction of a scene camera
S - moves camera in positive z direction of a scene camera
D - moves camera in positive x direction of a scene camera
Spacebar - moves camera in positive y direction of a scene camera
Left shift - moves camera in positive y direction of a scene camera

clothsimulation-opengl's People

Contributors

dominikcondric avatar

Watchers

 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.