Fluids in potion bottles are animated in Unity using custom shaders and particle systems. Each bottle has unique characteristics and must accommodate 10 levels, with the 10th one displaying special effects to trigger the bonus.
Potion Bottle Animations: Fluids in potion bottles are animated in Unity using custom shaders and particle systems. Each bottle boasts unique characteristics and adapts to display 10 distinct levels, with the 10th triggering a special effect.
Creating Liquid Levels in Maya: A simple cylinder is shaped using FFDs, and the movement is then baked into blendshapes—seamlessly integrated into FBX files and Unity.
Optimized Liquid Effects: The liquid mesh’s UVs are strategically arranged for glowing effects along the sides of the bottle and realistic wave simulations across the top surface.
Level-Based Animations: Blendshapes and particle systems are animated in Unity to transition through 10 distinct levels. Each level is integrated into animation states and controlled using an integer parameter for smooth engineering.
Custom Wave Shaders: A custom shader built in Shader Forge brings the magical liquid waves observed on the top surface of the potions to life.
Cap Animations: Animations for knocking caps off the potion bottles are implemented in animation states.
Coin Celebrations: Coin burst is animated using particle systems.
Coin Material Design: This custom unlit shader makes the coins shine using smart reflections from the builtin cubemap instead of external reflecion probes.