The tag has no usage guidance.

learn more… | top users | synonyms

11
votes
2answers
20k views

GLSL - one-pass gaussian blur

It is possible to implement fragment shader to do one-pass gaussian blur? I have found lot of implementation of two-pass blur (gaussian and box blur): http://callumhay.blogspot.com/2010/09/gaussian-...
7
votes
0answers
488 views

Variance shadow maps don't want to render properly

I've implemented VSM (and also ESM) in my engine but results are for me not as I expected and saw in many examples published on network. I set filtering of shadow maps to GL_LINEAR but when I compare ...
6
votes
4answers
20k views

How do I scale up pixel art without blur in GM Studio?

I'm creating a game in Game Maker Studio that uses pixel art. When I launch the game, all scaled-up textures are really blurry. (It doesn't happen to small ones.) For example, this image renders ...
6
votes
1answer
428 views

What is the most efficient way to blur in a shader?

I'm currently working on screen space reflections. I have perfectly reflective mirror-like surfaces working, and I now need to use a blur to make the reflection on surfaces with a low specular gloss ...
4
votes
1answer
171 views

How do I counteract FXAA blur?

FXAA is a cheap post processing anti-aliasing method which works great with deferred pipelines where traditional MSAA may not be a viable option. It's also easier to implement than alternatives such ...
4
votes
1answer
2k views

Two pass blur shader using libgdx tile map renderer

I am trying to apply the following technique: blur effect using two pass shader to my libgdx game using the OrthogonalTiledMapRenderer. The idea is to blur the background wich is also a tilemap but ...
3
votes
2answers
1k views

Optimizing gaussian blur with linear filtering

There's a few (here, and here) gaussian blur tutorials out there suggesting that you can essentially cut the number of texture lookups in a gaussian blur shader in half by exploiting the GPU's ...
3
votes
2answers
376 views

How do I take a screenshot and blur it?

I want to take a screenshot of the game when it's running, blur it and draw it on the screen. Could you help me with taking a screenshot and blurring it?
3
votes
2answers
699 views

Sprites are sometimes blurry in Flash

I am playing around with drawing an SVG sprite (imported in through [Embed]). Depending on the coordinates of the image, sometimes it appears more crisp than others. The following image shows how at ...
3
votes
1answer
716 views

Motion blur is blurring static stuff

I made a motion blur using OpenGL immediate mode, basically it involves saving screen to texture, then rendering blended texture back (let's skip the details) with something like this: glBegin(...
3
votes
1answer
187 views

How to blur entire scene but a specific spot in Unity?

What I want is basically: A way to blur every object/sprite on the scene, but have a "blur-free" circular zone, that can move. And everything that's behind that circular zone won't have the blur ...
3
votes
1answer
2k views

How to make a gaussian blur effect in UDK

I want to make a plane shape (surface) that have a gaussian blur applied to it and this plane is transperant, so all objects behind it looks like they are having a gaussian blur effect.
2
votes
2answers
805 views

2D Selective Gaussian Blur

I am attempting to use Gaussian blur on a 2D platform game, selectively blurring specific types of platforms with different amounts. I am currently just messing around with simple test code, trying to ...
2
votes
1answer
292 views

Bluring behind something then drawing text?

I want to basically make a blur shader in glsl and use it like Windows 7 does for Windows. I want to for example draw something and then blur a rectangle, then draw text over it. If someone could ...
2
votes
2answers
592 views

How to achieve a Gaussian Blur effect for shadows in LWJGL/Slick2D?

I am currently trying to implement shadows into my game, and after a lot of searching in the interwebs I came to the conclusion that drawing hard edged shadows to a low resolution pass combined with a ...
2
votes
1answer
105 views

How to blur image using glsl shader without squares?

I want to blur image with Gaussian blur algorithm. And I use the following shaders: Vertex shader attribute vec4 position; attribute vec4 inputTextureCoordinate; const int GAUSSIAN_SAMPLES = 9; ...
2
votes
2answers
2k views

GLSL Motion blur on mobile.. possible at acceptable framerates?

I have been struggling to implement a simple linear motion blur effect on mobile (Android, OpenGLES 2.0) but it just seems to destroy my framerate. I'm rendering to texture (FBO) then applying a ...
2
votes
1answer
847 views

Gaussian blur filter and “shimmering”

I have a fairly bog-standard Gaussian blur filter (seperable) I'm using to make a glow effect in my pipeline. At the moment I'm rendering it only to 256x256 texture and then doing a very simple ...
1
vote
1answer
289 views

Blur offset artifacts

I have simple blur shader which I calculate offsets in: Piece of vertex shader: output.texCoord1 = input.tex + float2( texelSize * -4.0f, 0.0f ); output.texCoord12 = input.tex + float2( texelSize * -...
1
vote
1answer
198 views

Blur gets displaced compared to original image

I have implemented a SSAO and I'm using a blur step to smooth it out. The problem is that the blurred texture is slightly displaced compared to the original. I'm blurring using a 4x4 kernel since that ...
1
vote
1answer
195 views

What weight should each frame have in motion blur?

I am working on a game and would like to add motion blur to videos that I export from the engine. Right now, I play back gameplay at 1/16th the original speed, giving me 16x more frames (e.g. instead ...
1
vote
0answers
42 views

How to have a gradient blur in objects on Unity?

This is related to a previous question I've asked here: How to blur entire scene but a specific spot in Unity? At the time I managed to solve my problem with a "hard" cutoff on the blurred and non-...
0
votes
1answer
30 views

Gaussian blur spritesheet/texture atlas without clipping edges

I'm trying to apply a Gaussian blur to a shadow to soften them a bit. I can apply the blur fine, but the problem is that I end up with this: Instead of this: Which isn't great. The image is part ...
0
votes
0answers
28 views

Blur shader decals

Im trying to implement custom shader for decal GroupStrategy in libgdx, and I'm having some noob GLSL and OpenGL problems. I have implemented shader looking at this: http://xissburg.com/faster-...
0
votes
1answer
40 views

Single pass box blur is not giving same result as double pass box blur

I've been using 2-pass box blur written in GLSL in Blender without problem. Blur horizontally: uniform sampler2D bgl_RenderedTexture; void main() { float blur = 0.3; float resolution = ...
0
votes
0answers
42 views

LibNoise: how to blur hard edges? (C# port)

Consider the following code that generates a base mask for an island: // gradient to ensure we do not end up with land on the edges. // this adds a black area alogn the edges, ...
0
votes
0answers
147 views

Gaussian blur not working correctly

So pretty much I tried to add a gaussian blur to something I am making and it is acting oddly. The setup is like: [All framebuffers are cleared to rgba(0,0,0,0), normal blend enabled] Draw some solid ...