O'Reilly logo

CryENGINE Game Programming with C++, C#, and Lua by Ruan Pearce-Authers, Carl-Filip Lundgren

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating and triggering material effects

There are two ways to trigger custom material effects, as explained in the following sections

Automated playback based on physical interactions

When two materials collide due to a physical event, the engine will look up a material effect in Game/Libs/MaterialEffects/MaterialEffects.xml based on the surface types assigned to the materials. This allows various particles and sounds to be played when certain interactions occur.

For example, if a rock collides with wood, we can play a specific sound event along with wood splinter particles.

To start, open MaterialEffects.xml with Microsoft Excel.

Note

Although it's possible to modify the material effects document manually, this is not recommended due to the complicated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required