Coder Social home page Coder Social logo

coslor / tressfx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gpuopen-effects/tressfx

0.0 0.0 0.0 385.06 MB

DirectX 11 library that provides convenient access to realistically rendered and simulated hair and fur

License: MIT License

C++ 85.83% C 2.46% Lua 4.27% HLSL 4.44% Objective-C 0.94% Batchfile 0.03% Python 2.03%

tressfx's Introduction

AMD TressFX

AMD TressFX

The TressFX library implements AMD's TressFX hair/fur rendering and simulation technology. The TressFX technology uses the GPU to simulate and render high-quality, realistic hair and fur. TressFX makes use of the processing power of high-performance GPUs to do realistic rendering and utilizes DirectCompute to physically simulate each individual strand of hair.

Latest release

Highlights include the following:

  • GCN-optimized rendering and simulation
  • Hair and fur (skinning) support with high quality anti-aliasing
  • Two options for order-independent transparency
  • Maya plugin provided for authoring
  • Full source code provided

Integrating TressFX

TressFX is our largest GPUOpen effect to date. Integration with a game engine for use in production is a substantial undertaking. This release moves us a lot closer to what we've done in production for specific engine integrations. You'll see some items (such as integration with a lighting system) will look more complicated than in previous releases. This release also tries to introduce some reusability across engines and APIs.

We're aware that there are still plenty of improvements we can make for the sake of usability in production. Some of the approaches to make this release more portable are experimental, and will potentially change in future releases.

New in TressFX 4

  • Hair is skinned directly, rather than through triangle stream-out.
  • Signed distance field (SDF) collision, including compute shaders to generate the SDF from a dynamic mesh.
  • New system for handling fast motion.
  • Refactored to be more engine / API agnostic.
  • Example code includes compute-based skinning and marching cubes generation.
  • DirectX 12 support

DirectX 12

Although DirectX 12 support is included, it hasn't been properly optimized.

Prerequisites

  • AMD Radeon™ GCN-based GPU (HD 7000 series or newer)
    • Or other DirectX® 11 or DirectX 12 compatible discrete GPU with Shader Model 5 support
  • 64-bit Windows® 7 (SP1 with the Platform Update), Windows 8.1, or Windows 10
  • Visual Studio 2015 or Visual Studio 2017
  • Visual Studio 2015 or 2017, and Windows 10 required for DirectX 12

Getting started

Running the demo

  • Visual studio solutions for VS2015, VS2017, DX11 and DX12, can be found in the amd_tressfx_sample\build directory.
  • There are also solutions for just the core library in the amd_tressfx\build directory.
  • Change settings such as fullscreen/windowed and enable/disable D3D debug layer in amd_tressfx_sample\bin\sushi.ini
  • Run SushiD3D11.exe or SushiD3D12.exe in amd_tressfx_sample\bin.

Where to find things

  • Documentation is in the doc subdirectory.
  • TressFX source code is in the amd_tressfx subdirectory.
  • The Maya plugin, written in python, is in tools\Maya.
  • Example code and content is in the amd_tressfx_sample directory. amd_tressfx_sample\src shows how to use TressFX.

Premake

The Visual Studio solutions and projects in this repo were generated with Premake. If you need to regenerate the Visual Studio files, double-click on gpuopen_geometryfx_update_vs_files.bat in the premake directory.

For Visual Studio 2015 and 2017, this version of Premake adds the WindowsTargetPlatformVersion element to the project file to specify which version of the Windows SDK will be used. To change WindowsTargetPlatformVersion for Visual Studio 2015 and 2017, change the value for _AMD_WIN_SDK_VERSION in premake\amd_premake_util.lua and regenerate the Visual Studio files.

Third-Party Software

  • TressFX is distributed as source code, licensed under MIT. It contains no third-party code.
  • Premake is used to generate project files. It is distributed under the terms of the BSD License. See premake\LICENSE.txt.
  • The sample makes use of some third-party code. See amd_tressfx_sample\prebuilt\LICENSE.txt for further details.

Previous releases

TressFX 4 is a big change from the prior 3.1.1 release. A separate branch for 3.1.1 has been created for the convenience of users that have been working with TressFX 3.

Attribution

  • AMD, the AMD Arrow logo, Radeon, and combinations thereof are either registered trademarks or trademarks of Advanced Micro Devices, Inc. in the United States and/or other countries.
  • Microsoft, DirectX, Visual Studio, and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.

tressfx's People

Contributors

jstewart-amd avatar ashleysmithgpu avatar khillesl-amd avatar mrgreywater avatar dongsoo-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.