Giter Site home page Giter Site logo

femfx's Introduction

AMD FEMFX v0.1.0

FEMFX is a multithreaded CPU library for deformable material physics, using the Finite Element Method (FEM). Solid objects are represented as a mesh of tetrahedral elements, and each element has material parameters that control stiffness, how volume changes with deformation, and stress limits where fracture or plastic (permanent) deformation occur. The model supports a wide range of materials and interactions between materials. We intend for these features to complement rather than replace traditional rigid body physics. The system is designed with the following considerations:

  • Fidelity: realistic-looking wood, metal, plastic, even glass, because they bend and break according to stress as real materials do.
  • Deformation effects: non-rigid use cases such as soft-body objects, bending or warping objects. It is not just a visual effect, but materials will resist or push back on other objects.
  • Changing material on the fly: you can change the settings to make the same object behave very differently, e.g., turn gelatinous or melt
  • Interesting physics interactions for gameplay or puzzles

The library uses extensive multithreading to utilize multicore CPUs and benefit from the trend of increasing CPU core counts.

Included in this release

  • Source code for FEMFX library
  • Houdini plugin for content creation
  • Sample code for loading and preprocessing content for rendering
  • Sample threading utilities
  • A basic graphical sample

In a separate release, we provide a plugin for Unreal Engine that demonstrates more advanced rendering of FEM objects. Instructions for access are here: https://github.com/GPUOpen-LibrariesAndSDKs/GameEngineIntegrations

Dependencies The sample code has some dependencies on external frameworks which must be downloaded separately:

System requirements

  • AMD Ryzen™ 7 2700X Processor or equivalent
  • Windows® 10
  • Visual Studio 2017 or Visual Studio 2019

Files:

  1. Documentation
    • amd_femfx\docs\
  2. Library
    • amd_femfx\inc\ : Public API (Look first at AMD_FEMFX.h)
    • amd_femfx\src\ : Implementation files
  3. Sample code
    • samples\FEMFXViewer\ : Basic sample; displays tetrahedral meshes and debug information
    • samples\common\TestScenes.*: Setup for tech demo scenes used by FEMFXViewer
    • samples\common\FemResource.* : Container for the data loaded from a .FEM file
    • samples\common\LoadFem.*: Code for parsing a .FEM and loading into an FEMResource
    • samples\common\RenderTetAssignment.* : Assigns rendering mesh vertices to tetrahedra for skinning
    • samples\ExampleRigidBodies\ : Basic demonstration of interfacing an external rigid body system with FEMFX library
    • samples\sample_task_system\ : Sample task system library interfaced with FEMFX
  4. Houdini plugin for content creation
    • houdini16.5\AMD_FEM_Assets.otl
  5. External dependencies
  6. Some individual components
    • amd_femfx\inc\Vectormath\ : 3D vector/matrix math
    • amd_femfx\src\PrimitiveCollision\ : Triangle and box collision operations, intersection and CCD
    • amd_femfx\src\Common\FEMFXSvd3x3.* : 3x3 SVD
    • amd_femfx\src\Threading\ : Async parallel-for and task graph support
    • samples\sample_task_system\TL* : Async task system implementation

femfx's People

Contributors

elarsen-amd 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.