top of page

Force Field Dynamic Shader Effect

2 days ago
3 min read


OVERVIEW

Role

Technical Artist

Project Type

Procedural/Real-Time VFX Shader Effect Development

Platform

Unreal Engine 5 (Game Development/Virtual Production)

Contribution

Technical Art

Technologies

Unreal Engine, Blender

Status

Completed


The project was a technical art exercise in developing a scalable, procedurally generated VFX effect to simulate a dynamic force field visualisation. The effect is intended to render enclosures, best suited for environments featuring a sci-fi aesthetic.



THE CHALLENGE


While Blender provided simpler workflows to script the shader, the challenge was recreating the visual effect in a game development engine such as Unreal Engine, requiring sufficient amount of effort and trial to create a visually appealing and optimised material system that can render efficiently on both PC and XR platforms.



ROLE & FOCUS AREAS


This was a self-driven project in which I explored technical art and optimisation workflows with a specific focus on shader development.



SOLUTION & PROCESS


IDEATION

The core object of the exercise was to create a dynamic "sweeping" effect using a gradient texture. Due to its flexible shader scripting model, the effective was originally explored in Blender.


DESIGN

The original prototype was scripted by blending a grid texture and a signage texture. The "gradient sweep" was implemented my manipulating the dark, light and mid tone values of the Colour Ramp node.



Building the prototype helped lay the foundation for the final setup in Unreal Engine, informing the requirement of using a similar component to the Colour Ramp node in Blender to recreate the effect.



1 - COLOUR

  • Base Colour: The base colour of the base force field layer.


2 - EFFECT OPACITIES

  • Base Colour Opacity: Adjust the opacity of the base force field layer.

  • Composite Texture Falloff: Adjusts the composite texture's contrast.


3 - SWEEP ANIMATION

  • Sweep Direction: Adjusting the value from 0 to 1 will change the direction of the sweep animation.

  • Sweep Speed: Adjusts the speed of the sweep animation.


4 - TEXTURES

  • Gradient Curve: Various Curve assets can be assigned, giving different gradient effects.

  • Gradient Brightness: The intensity of the gradient texture can be adjusted.

  • Gradient Contrast: The gradient texture's contrast can be adjusted.

  • Grid Texture: A texture paramater to specify a repetitive pattern for the effect.

  • Grid Colour: Adjust the pattern's colour.

  • Grid Brightness: Brightness of the pattern.

  • Grid Texture Scale X & Y: Adjusts the scale of the pattern along the X and Y axes.

  • Signage Texture: A texture parameter that switches the signage projected onto the forcefield.

  • Signage Colour: Adjusts the signage's colour.

  • Signage Brightness: Adjusts the brightness of the signage.


DEVELOPMENT

With the grid texture and the singage texture imported into the UE5 project, the material was created using Unreal Engine's legacy shading model. As a dynamic translucent material, the goal was to develop a shader with as little complexity as possible.


SHADER SETUP



1 - Node cluster that animates a gradient mask.

2 - Node setup to adjust the gradient's brightness and contrast.

3 - Node setup that layers the grid pattern and the signage textures with scope of adjusting the scale, colour and brightness.

4 - Colour node to adjust the colour of the base layer of the force field.

5 - Setup to adjust the composite texture's contrast level.

6 - Setup to adjust the base layer's opacity.


PERFORMANCE STATISTICS

To reduce the material's complexity for compatibility with both PC and XR platforms, the shader's Blend Mode setting was changed from Translucent to Additive. Below are the statistics before and after the adjustment:

Statistics

Translucent

Additive

Base Pass Shader

276 Instructions

267 Instructions

Base Pass Vertex Shader

295 Instructions

230 Instructions

Texture Samplers

5/16

5/16

Texture Lookups (Est.)

VS (3), PS (3)

VS (3), PS (3)

User Interpolators

2/4 Scalars (1/4 Vectors) (TexCoords: 2, Custom: 0)

2/4 Scalars (1/4 Vectors) (TexCoords: 2, Custom: 0)

Shader Count

22

22

Preshaders

17 (20 param fetches, 47 ops)

17 (20 param fetches, 47 ops)

Switching from Translucent to Additive resulted in a reduction of 9 instructions for Base Pass Shader (3.26% improvement) and a reduction of 65 instructions for Base Pass Vertex Shader (22.03% improvement).



PROJECT OUTCOMES & NEXT STEPS


The project helped expand my existing technical knowledge of dynamic shader systems while solidifying my development journey from concept to finished product.


Future iterations will aim to further reduce the shader's complexity, making it more compatible with XR and mobile platforms.

 
 
bottom of page