Code Monkey home page Code Monkey logo

bounce_softbody's Introduction

Bounce Softbody

Bounce Softbody is a small 3D softbody physics engine.

Features

Common

  • Efficient data structures with no use of STL
  • Fast memory allocators
  • Built-in math library
  • Tunable settings used across the entire library
  • Included debug draw utility

Sparse

  • Fairly efficient sparse matrix and vector structures
  • Full Backward Euler method
  • Pre-filtered Pre-conditioned Conjugate Gradient (PPCG) method

Collision

  • Spheres, capsules, and boxes
  • Dynamic tree

Dynamics

  • Unconditional simulation stability
  • Stretch, spring, mouse, triangle and tetrahedron element force types
  • Vertex contact, friction
  • Viscosity
  • Linear/non-linear time solver
  • Ray-casting

Testbed

  • OpenGL with GLFW and GLAD
  • UI by imgui
  • Orbit camera
  • Mouse picking
  • premake build system

Dependencies

Testbed

External

These are the external dependencies for the Testbed example project. If you don't care about Testbed, then you don't need these dependencies.

Documentation

Note: Use the the Testbed for learning how to use Bounce Softbody. The Testbed is a collection of visual tests and examples that can support the development of the library. As you would imagine, this application is not part of the library.

Building

Bounce Softbody uses premake for generating project files in a platform agnostic manner. premake is available at https://premake.github.io/.

  • Put premake into bounce_softbody/.

Windows

Visual Studio 2019

  • Say { premake5 vs2019 } on a command line.
  • Open { build/vs2019/bounce_softbody.sln }.
  • Set testbed as the startup project.
  • In the testbed debugging properties, set Working Directory to '..\..\testbed'.
  • Press F5 to run.

Linux

From the official GLFW documentation:

"... To compile GLFW for X11, you need to have the X11 packages installed, as well as the basic development tools like GCC and make. For example, on Ubuntu and other distributions based on Debian GNU/Linux, you need to install the xorg-dev package, which pulls in all X.org header packages. ..."

GNU Make

x86
  • Say { ./premake5 gmake2 } on a terminal.
  • From build/gmake2 say { make config="debug_x86" }.
  • Set the testbed directory as the working directory.
  • From bin/x86/debug/testbed say { ./testbed }.
x64
  • Say { ./premake5 gmake2 } on a terminal.
  • From build/gmake2 say { make config="debug_x86_64" }.
  • Set the testbed directory as the working directory.
  • From bin/x86_64/debug/testbed say { ./testbed }.

bounce_softbody's People

Contributors

irlanrobson avatar tlemo 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.