TressFX
Developer(s) | AMD |
---|---|
Initial release | 2014 |
Stable release | 3.0 |
License | MIT License[1] |
Website |
GPUOpen: TressFX amd |
AMD TressFX is software library which provides for advanced simulation and rendering of hair, fur, and grass to be processed by the GPU. The initial library was written to perform well on AMD's GCN-based products. Version 3 as released on January 26, 2016, worked solely with for Direct3D 11 and utilized DirectCompute.
A competing solution offered by Nvidia is HairWorks which is part of their Nvidia GameWorks suite, and is proprietary in nature.
Released as part of GPUOpen AMD TressFX is free and open-source software subject to the MIT License.
Motivations for Development and Origins
Traditionally, hair representation in video games has been sub-par for several reasons. For short hair (especially on male characters), hair has often been represented by a detailed texture on a character's skeleton. This makes is difficult to represent hair styles that are not pressed flat against the skull. Longer hair is often represented as a texture on a moving part of a skeleton and thus moves as a multi-jointed appendage. While this hair has more movement than the former, the movement is usually physically unrealistic – the hair moves as one body and movement is very often under or over damped.
In order to overcome this, AMD developed TressFX Hair. TressFX Hair models each of potentially thousands of strands of hair individually with dozens of links per strands of hair. Each strand reacts to different physical forces such as gravity, inertia, wind, and movement of a characters head. This allows the hair to move in a much more physically realistic manner.
Because simulating thousands of strands of hair is much more computationally intense than displaying a texture over a character's skeleton, the impact of TressFX Hair on game performance and frame rates may not be trivial. High performance video cards may have enough resources available that the extra effort of rendering hair may produce negligible or acceptable frame rate losses. Conversely, older video cards may spend an large proportion of each frame's render time rendering hair, and this can noticeably reduce game performance. Of course, performance is interrelated with other game settings, resolution, the number of objects with hair to be rendered in the screen, amount of hair per object, and distance from the object.
Versions
Version 1.0
TressFX Hair 1.0 was AMD's first release of this software in. Version 1.0 only offered support for hair and not fur or grass. The first game to use TressFX Hair was the 2013 game Tomb Raider.
Version 2.0
Version 2.0 offers many improvements upon version 1.0 such as:[2]
- Continuous levels of details (LODs) are designed to improve performance by dynamically adjusting visual detail as TressFX-enabled objects move towards and away from the player’s POV. This is done by rendering fewer hairs when far away from an object but making each hair thicker, thus reducing computational time but maintaining the same look and aesthetic.
- New functionality to support rendering for grass and fur in addition to hair.
- Hairs are arranged in groups. Hair naturally groups together on a person's head. Renderings produced by TressFX 1.0 however did not do this, and so the hair looks unnaturally separated
- Gravity can be changed on the hair. For example, when swimming hair should be neutrally buoyant and should neither significantly sink nor float. In order to accomplish this, the gravity of the hair can be set to 0.
- Improved efficiency with many light sources and shaders via deferred rendering.
- Superior self-shadowing for better depth and texture in the hair.
- Even more robust scalability across GPUs of varying performance envelopes (vs. TressFX 1.0).
- Modular code and porting documentation.
- Stretchiness now respects the laws of physics.
Version 3.0
The first game confirmed to use TressFX 3.0 is Deus Ex: Mankind Divided.[3][4] Rise of the Tomb Raider also uses TressFX.
See also
References
External links
- TressFX 2.0 slides for developers
- TressFX 2.0 slides
- AMD page on TressFX
- AMD page on TressFX 2.0
- TressFX 3.0 for Deus Ex slides
|