Skip to main content
245 votes
Accepted

How can I create a 'flaming' effect like in Ocarina of Time's title screen?

First make a white-on-black mask of your logo/text and blur it. Then create a repeating (tileable) solid noise texture (GIMP used here) Use the Map->Tile... filter to create a 3x3 tiled pattern (in ...
Stephane Hockenhull's user avatar
173 votes
Accepted

How can I create a "see behind walls" effect?

Masking To make this effect, you can mask objects by using a stencil Buffer. the stencil buffer is a general purpose buffer that allows you to store an additional 8bit integer (i.e. a value from 0-...
Seyed Morteza Kamali's user avatar
105 votes
Accepted

How can I replicate Quantum Break's distortion particle effect?

Pyramid Particle Unity default particle's shape is quad. first you need to change this shape to pyramid by using pyramid object or turns quads to pyramids with a geometry shader. Refraction To ...
Seyed Morteza Kamali's user avatar
40 votes
Accepted

Name & explain shimmering patterns seen when looking at a grid of objects from a distance

It's a moiré pattern caused by aliasing. In your examples, the Moiré patterns occur when a repetitive pattern of high spatial frequency is sampled at low resolution. Consider the Wikipedia example ...
Pikalek's user avatar
  • 12.4k
12 votes
Accepted

How to avoid minecraft-like map to blend

There are two easy ways to solve this. What minecraft does is use a pseudo ambient occlusion. This essentially creates a shadow around ledges, making them visible from any angle. It can even ...
Bálint's user avatar
  • 14.9k
8 votes
Accepted

How can I morph between images in real time?

it has traditionally been a brutal algorithm to force your computer to perform. This may have been true when the Elastic Reality software you link to was created in the mid-90s. Back then CPUs were ...
DMGregory's user avatar
  • 135k
6 votes

Seamless 2D wrap-around effect

You can do this with magic (shader)! Secret: Cutting Assistant In Half Of course, we know she is never actually cut in half. So, there has to be some logical explanation for it all. Well, he ...
Seyed Morteza Kamali's user avatar
5 votes
Accepted

Differences between particles and using shader in creating effects

This will depend a lot on the specific effect you're trying to achieve. As one example, here's a pair of fire effects created by Edward del Villar. The one on the left uses particles, while the one ...
DMGregory's user avatar
  • 135k
5 votes
Accepted

How do I blink a sprite a few times before it disappears?

It appears you want Blink to be executed as a coroutine. But you are executing it directly. If you call an IEnumerator method directly, you receive an ...
Philipp's user avatar
  • 120k
5 votes
Accepted

How to construct a propeller clock in Unity?

Here's an example of how we can mimic this appearance in a Unity scene: My strategy is: First, compose the image that the POV display is trying to project. Render that image, with a shader filter ...
DMGregory's user avatar
  • 135k
4 votes
Accepted

How would I create colouring such as in Splatoon?

I would imagine the easiest way to do this for large areas regardless of texture size / quality would be to send a colour / player index over the network, and treat it as a vertex colour at the ...
Engineer's user avatar
  • 30k
4 votes

2D Blizzard/Snowstorm Effect

Making Snow by particle system as you mentioned in your question you need some noisy windblown. particle system have part that called noise that you can moving your particles based on noise. 2D Snow ...
Seyed Morteza Kamali's user avatar
4 votes
Accepted

Wind-blown fire particle effect from scratch

An effect like the one you show is actually pretty simple to code. Create a class Ember that sits at one (x,y) position and ...
Engineer's user avatar
  • 30k
4 votes

How to create a glowing corona/halo around a sun and make it emit light

In order for that shiny halo to appear around HDR-colored materials, you need to add a Bloom post-processing effect to your scene. How to do that and what settings that filter has available differs a ...
Philipp's user avatar
  • 120k
4 votes
Accepted

Shader to give the effect of a 2D character covered in oil

I'd like to propose taking some inspiration from the 3D graphics / PBR world. From that perspective, the problem here is that your sprite image combines into a single color value, two different ...
Kevin Reid's user avatar
  • 5,508
3 votes
Accepted

How do I create this windblown snow effect?

Note: I have not used Unity yet, so here's my very high-level/conceptual answer: Aside from simply spawning particles in a particular area/direction, it looks like Skyrim is using another technique ...
Quintin Steiner's user avatar
3 votes

How do I render a volumetrically lit spotlight?

(Someone else can write a more in-depth answer since these steps require a bit of non-trivial math, but since there's no answer and this question is probably important for some I'll post). There are ...
Sirisian's user avatar
  • 584
3 votes
Accepted

How to implement multicolored flashing sprite effect like in Contra and the Messenger?

I think you could achieve this effect by using a rotating color palette. You can do this in GLSL by passing in a grayscale image and a 1D texture containing the color palette. You'd sample the ...
user1118321's user avatar
  • 2,632
3 votes

How to make the background tilemap in Unity3D have a "far away fog effect" filter in a sidescroller game?

If you are only interested in 2D fog, you can simply change the color of the background sprites so it looks like it is behind a fog. In Unity, you can simply change the color of the ...
Tom Tsagkatos's user avatar
3 votes

What is the order of postprocessing effects?

@Bálint's above answer is mostly correct, but you need to be aware Unity postprocess stack you see above is only editor display order. Unity handles it in pretty different order (which is actually ...
Tomasz Stobierski's user avatar
3 votes
Accepted

How to create spaceship 'ion trails' that can be curved in Unity?

Use trail renderer component with the object. You can set time, width, color etc with it. See for more.
Sourav Paul Roman's user avatar
3 votes
Accepted

How can I implement explosion effects in a 3D game?

Many particles which is actually sprites (So, yes. It is sprites). You might want to see this. It has images that might make you understand how it works. Though i recall there's also volumetric ...
Greffin28's user avatar
  • 989
3 votes
Accepted

JavaScript 2D liquid flow

I've found that fluid simulation in 2d games is usually visual trick involving simple physics bodies and a shader or other rendering treatment to make them appear liquid-like. There's a good example ...
Rybar's user avatar
  • 46
3 votes

Seamless 2D wrap-around effect

Myself, I wouldn't do this with a shader, but with a second camera. The idea is we'll take our original/main/central camera, and make a copy that butts-up perfectly against its left side. As an ...
DMGregory's user avatar
  • 135k
3 votes

How do I blink a sprite a few times before it disappears?

When you call Blink you are discarding its return value: Blink(itemClone); You do not want to do that. I believe you want to ...
Theraot's user avatar
  • 27.2k
3 votes
Accepted

How can I color in only specific regions of my scene?

One of my favourite tricks in Unity is the OnRenderImage method. Put this on a script on your camera, and you get to intercept the image the camera has just ...
DMGregory's user avatar
  • 135k
3 votes

What is the use of multiple vertex color sets

Vertex colours are just arbitrary extra data you can pack into a mesh - you don't have to use them as literal colours when rendering. So frequently, these get used as control weights for a variety of ...
DMGregory's user avatar
  • 135k
2 votes
Accepted

Implementing a glowing effect on 3D objects with Direct3D 11

You can do this by using the geometry shader to extrude faces from the sphere to face the camera and then use a pixel shader to create a nice glow, this is how I've done it in the past, I'm going to ...
Tim's user avatar
  • 601

Only top scored, non community-wiki answers of a minimum length are eligible