ArticleslgStudy

computer science

TressFX

TressFX is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand TressFX rather than just read about it. In short: AMD TressFX is a 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.

Key takeaways

  • TressFX belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect TressFX to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of TressFX from memory before moving on to harder problems.

Reference excerpt

AMD TressFX is a 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 was released on January 26, 2016, and works solely with Direct3D 11 and utilizes 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 it 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 strand of hair. Each strand reacts to different physical forces such as gravity, inertia, wind, and the movement of a character's 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 a 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 2013. 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:

Continuous Level of detail (LOD) is designed to improve performance by dynamically adjusting visual detail as TressFX-enabled objects move towards and away from the player's point of view. 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.

Version 4.0 Version 4.0 of TressFX was released on the 20. April 2018 and brought a wide variety of improvements including DirectX 12 support. This release also focused on being much easier to import into existing rendering frameworks.

Version 4.1 This version was released on the 20 January 2020. It includes some performance improvements, but mostly is focused on better integration in existing rendering frameworks. An integration into the Epic Games Unreal Engine 4.22 is provided including detailed documentation.

PureHair PureHair is a version of TressFX modified by Square Enix for use in Rise of the Tomb Raider.

See also AMD

References

External links AMD page on TressFX

Worked examples

Example 1 — a first encounter with TressFX

Start with the simplest possible case. Write down what TressFX claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to TressFX before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about TressFX ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of TressFX

In research
TressFX appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses TressFX in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
TressFX is common in secondary-school and first-year university syllabi. It links to neighbouring topics AMD software, Free software programmed in C++, Software using the MIT license, so understanding it makes those chapters shorter.
In everyday life
Look for TressFX outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “TressFX” →

How to study TressFX in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what TressFX means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain TressFX out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is TressFX in simple terms?

AMD TressFX is a 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.

Why does TressFX matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study TressFX?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on TressFX.

Tags

  • AMD software
  • Free software programmed in C++
  • Software using the MIT license

Keep exploring