UE Sandbox

UE Sandbox

Role
Game Developer
Game Engine
Unreal Engine
Programmers
1
Joined
Start of Development

Info

UE Sandbox is a sandbox project for anything programming / Unreal Engine related. The main purpose of this project is for experimentation and learning.

Links

GitHub Repo: https://github.com/leafarz/ueSandbox

Contributions

The project was developed by me. Each feature contains their own levels.

Convolution Kernels

These are a post process materials that use different convolution kernels.

There are 4 shown here from left to right:
1. Gaussian Blur
2. Ridge Detection
3. Sharpen
4. Sobel

Disintegration

This is a surface material that uses a gradient noise with 2 cutoff values. One value is for the bright emissive effect and the other one for masking out the surface.

Distance Field

This is a surface material that uses distance fields to check the surroundings. It adds to world position offset if near another object.

Gerstner Wave

This gerstner wave is a surface material based on an implementation I tried out from Nvidia GPU gems.

It combines multiple sin and cos functions with varying wavelengths, amplitudes, rates, directions, etc to produce this wavelike motion.

Glass Materials

These are surface materials to showcase different glass-like effects.

The one on the left uses thin translucent shading model which requires Unreal's experimental EnableOrderIndependentTransparency feature. The one on the right uses dithering. The one at the back uses the standard Translucent blend mode.

Jump Flood Algorithm

This is a surface material that uses the jump flood algorithm using to fill the surrounding areas iteratively up until a certain point. I tested this to try out very thick outlines.

Paint Tech Demo (Unfinished Swan inspired)

This is a surface material that uses a mask render target to display it over the surface of the object. In this case we just show it as black.

When the bullet collides with the object's surface, it tries to get the impact UV. The brush texture is drawn into the mask using the UV to position it correctly on the surface

Pulse Effect Material

This is a post process material which aims to experiment on arrays in materials. There are no array nodes in the material editor so what I did here is I put the location into a render target as location (rgb) per pixel and used it as a buffer. I pass that buffer to the material so the material can process the data and display accordingly.

Random Splats

This is a surface material that manipulates the UV to display a single texture multiple times.

For each cell, a random location and rotation is used to display the texture. It then samples the neighbor cell's UV to draw the continuation of the texture especially if it gets cut.

Snow Trail

This is a surface material that is similar to Paint Tech Demo Section.

The same logic is used: getting the UV where the foot is location and draw a brush texture to the mask. This time the mask is used to offset the floor geometry and also to blend between the snow and soil texture (might be difficult to see) when the offset gets low enough.

Toon / Cel shading

This is a surface material created to experiment with a toon shading effect. It uses a common implementation which shows flat colors based on bands and with added specular highlight.

Wet Surface Material

This is a surface material to experiment with the SingleLayerWater shading material. The water waves came from the idea from the Gertner Wave Section but with a very simplified version.

To achieve the wet effect in the material, I sampled the wave position using the pixel’s world X and Y on the wall but using the Time minus 1s.

The resulting Z (height) value from sampling is used as a mask. If the world location of the pixel is lower than the Z, it is rendered as wet.

Disclaimer: This is a personal website. Opinions expressed are solely my own and do not express the views or opinions of my employer.

© Raf Formes