A technique to smooth the jagged edges of graphical shapes when rendering them.

learn more… | top users | synonyms

42
votes
4answers
7k views

What causes aliasing?

I always hear about aliasing and anti-aliasing and I know what it looks like but what I don't understand is what causes it. Is it a physical phenomenon? Or a numerical one? If it helps to explain, I ...
17
votes
3answers
14k views

How do I implement anti-aliasing in OpenGL?

I want to do full-screen anti-aliasing in OpenGL, and dont want to use the anti-aliasing that is provided by OpenGL itself, since I am building a game and want good effects in it. How should I ...
7
votes
2answers
1k views

Enabling multisampling in Irrlicht?

I'm working on a little game that uses Irrlicht. I'm pretty new to Irrlicht and I was wondering how I could enable multisampling. The device driver is EDT_OPENGL initiated as such: IrrlichtDevice ...
6
votes
2answers
3k views

How do I draw anti-aliased holes in a bitmap

I have an artillery game (hobby-learning project) and when the projectile hits it leaves a hole in the ground. I want this hole to have antialiased edges. I'm using System.Drawing for this. I've tried ...
5
votes
1answer
281 views

Is it more efficient to render full size with AA, or scaled down with no AA?

Which is more resource-efficient (given a typical modern 3D game scene): Rendering it at 100% scale with anti-aliasing, or Rendering it larger and scaling it down to fit the screen, but without AA? ...
5
votes
2answers
1k views

Preventing XNA from anti-aliasing textures?

It appears that if a image is undersized for covering the model it's set to cover, it anti-aliases instead of stretches. How can I control this behavior?
5
votes
3answers
628 views

Should I implement anti-aliasing by rendering large and scaling down?

Having read about anti-aliasing, I came to realise that I could render my scene 8× the original size of the screen, then shrink it to render it on my original screen to improve the effect that I have ...
5
votes
1answer
3k views

How do I use screen-space derivatives to antialias a parametric shape in a pixel shader?

In Valve's Alpha Tested Magnification paper, it mentions using "per-pixel screen-space derivatives" for doing anti-aliasing. My understanding is that this is the ddx and ddy intrinsic functions in ...
5
votes
1answer
439 views

Line at edge of transparent texture on XNA mesh

I have a mesh that is computer generated with a texture on top of it with transparancy on one side. The SamplerState is set to LinearWrap because I would like the texture to wrap. The problem I have ...
5
votes
1answer
977 views

Smooth pixels while rotating sprite

I just started with andengine, so this maybe gonna be silly question. How to make my sprites more smooth while I rotate them? Or maybe it because this is screenshot from tablet? Thanks JohnEye it ...
4
votes
2answers
7k views

How to draw a smooth circle in Android using OpenGL?

I am learning about OpenGL API on Android. I just drew a circle. Below is the code I used. public class MyGLBall { private int points=360; private float vertices[]={0.0f,0.0f,0.0f}; private ...
4
votes
1answer
2k views

What advantages does multisampling have over supersampling?

I never really fully understood this, or found an article which explained all the steps in a friendly way. I'll start with what I do know already (which I hope do not contain misconceptions). I'm ...
4
votes
1answer
59 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
805 views

How do I achieve supersampling / anti-aliasing in pixel shaders?

I am trying to write a couple pixel shaders to apply to images similar to Photoshop effects. For example this effect: But I noticed there is aliasing in my resulting image (the above image is a ...
4
votes
1answer
1k views

How to make my simple round sprite look right in XNA

Ok, I'm very new to graphics programming (but not new to coding). I'm trying to load a simple image in XNA which I can do fine. It is a simple round circle which I made in photoshop. The problem is ...
4
votes
2answers
642 views

OpenGL: Filtering/antialising textures in a 2D game

I'm working on a 2D game using OpenGL 1.5 that uses rather large textures. I'm seeing aliasing effects and am wondering how to tackle those. I'm finding lots of material about antialiasing in 3D ...
4
votes
1answer
74 views

What is adaptive super-sampling?

I'm trying to implement anti-aliasing into a raytracer with super-sampling. What exactly is adaptive super sampling? I'm picturing it as just sampling all of the pixels which are on the edge of each ...
3
votes
3answers
684 views

Problem in blitting a clean, crisp sprite

I am having a bit of a tooling problem...and I am unsure of how to solve it. I am currently using PyGame to try and write a simple Minesweeper clone, except my sprites that I made are hexagon based ...
3
votes
1answer
446 views

Anti-Aliasing in OpenGL [C++]

I'm trying to make anti-aliasing work inside of OpenGL, here's what I've tried: glEnable(GL_POINT_SMOOTH); glHint(GL_POINT_SMOOTH_HINT, GL_NICEST); glEnable(GL_LINE_SMOOTH); ...
3
votes
2answers
642 views

Trying to understand relatively simple normal map antialiasing paper

See this paper: ftp://download.nvidia.com/developer/Papers/Mipmapping_Normal_Maps.pdf They describe the very simple implementation of an algorithm for antialiasing normal maps. I don't understand ...
3
votes
1answer
130 views

In MonoGame, how can I disable font anti-aliasing?

I am building a game with a "low resolution" aesthetic, so I would like to disable the default font anti-aliasing. The text is drawn using the built-in SpriteFont and SpriteBatch classes. Here is ...
3
votes
1answer
222 views

MSAA deferred implementation issue

I recently implemented MSAA in my deferred renderer, it looks good but I just got a feeling I might have done it wrong. Here is what for example the directional light fragment shader looks like: ...
3
votes
1answer
2k views

Are shader-based antialiasing methods making traditional multisampling obsolete?

See an analysis of FXAA here, and the page for SMAA here Now these methods have a drawback which is that they are not capable of improving quality in a physically accurate way, like multisampling ...
3
votes
1answer
439 views

Fighting aliasing on specular highlights

MSAA does a good job removing aliases on mesh edges, but it does not help with aliased specular highlights: Notice the aliased specular highlights on the doors and windows. I believe the reason ...
3
votes
0answers
131 views

Custom sampling points for anti-aliasing [closed]

I'm trying to write an anti-aliasing shader in HLSL, but I can't find any way to rasterize at a custom point. (in between pixels on the screen, but not orderly like supersampling) Is there any way to ...
3
votes
2answers
624 views

Screen effects and antialiasing

I have been working on a game for a while using glut for basic window creation. I was rendering to an offscreen buffer so that I could implement various effects like screen bulging, motion blur, ...
2
votes
1answer
501 views

Kinds of anti aliasing? [closed]

I'm looking into the newer OpenGL's with GLFW, but I'm stuck in a decision. What kind of anti aliasing is the best, or something that makes it look real, not "real". I don't want the picture blurred, ...
2
votes
1answer
546 views

How do I clear up artifacts between aligned faces when using AA in XNA 4.0?

I'm working on a graphics engine that lets you walk around a world that is made up of cubes (voxel engine) and I'm having some difficulties getting the results I want. I'm not the best at 3D ...
2
votes
1answer
112 views

How do mipmapping, anti-aliasing and anisotropic filtering contribute to rendering quality?

To my understanding, mipmaps exist to save on computations and memory when textures are far away. In an ideal world, we wouldn't want them. We'd just use the same high quality textures far away and ...
2
votes
4answers
1k views

Why is anti-aliasing so slow?

I have always asked myself this, especially about x4 or x8 anti-aliasing. It seems that over the years, the algorithm has remained the same but needs more power than before due to improved game ...
2
votes
1answer
788 views

AndEngine Font Issue

I am learning AndEngine. I am displaying Hello world using this code: public class myactivity extends SimpleBaseGameActivity { private final int CAMERA_WIDTH = 320; private final int CAMERA_HEIGHT ...
2
votes
1answer
179 views

Does the feature level affect multisampling?

I'm using DirectX 11 with the feature level 9_3 even though my computer could run 11_0, but I want to support older hardware as well. I'm using CheckMultisampleQualityLevels to check whether multi ...
2
votes
1answer
336 views

Color bleed on voxel edges when using anti-aliasing

My Minecraft-like game uses a texture containing four block IDs in each pixel (RGBA). These IDs are used in the shader to determine what color each whole block should be. I'm having an issue with ...
2
votes
0answers
227 views

How does QCSAA actually work in nVidia GPUs? [closed]

I know the principles behind how QCSAA is supposed to work (as opposed to how, say, regular CSAA works) and subjectively after some testing I like the style it lends to the image enough that I'm ...
2
votes
0answers
135 views

Tool for editing sprites contour pixel alpha value [closed]

I have seen that most games uses sprites that have a transparent contour, that is, the pixels that belongs to the contour of the object in the WxW sprite image is below 255. It is not perfectly ...
1
vote
2answers
182 views

Why is antialiasing dependent on sampling?

I am thinking about the best ways to render two dimensional objects in the highest detail possible using modern graphics technology and it occurred to me that when I simplify a situation enough, I ...
1
vote
1answer
1k views

How would I go about using FXAA in XNA?

This isn't so much a "give me teh codez" as it is a request for the "right" steps to go through. I want to implement FXAA in XNA, but I'm a relative newb to the graphics side of game dev, so I'm not ...
1
vote
1answer
2k views

Anti Aliasing: How to implement supersampling in OpenGL?

I'm learning OpenGL by working on a small Oculus Rift project, which implies, anti aliasing is everything :). Since the application of the barrel distortion shader requires rendering to a framebuffer ...
1
vote
1answer
466 views

How to calculate the viewing cone radius at a distance in raymarching?

I'm "raymarching distance fields" (proper lingo: sphere-tracing) in GLSL. To implement cone-marching atop of it (and also to minimize the number of raymarching steps regardless of whether ...
1
vote
1answer
985 views

2D Mask antialiasing in xna hlsl

I have two texture2d , one of these is a mask texture and have 2kind color and i use that for mask (filter) second texture2D something like float4 tex = tex2D(sprite, texCoord); float4 bitMask ...
1
vote
0answers
163 views

Xna 2d texture antialiasing

I've got a problem with drawing 2D texture in xna 4.0. My program generates terrain texture: The problem is in rough surface of my texture (dark-blue) that is generated by-pixel. Is there any ...
1
vote
0answers
103 views

Render isometric TMXTilemap with antialiasing method

I'm currently working on a cocos2d-x project that uses isometric tile maps.all the tiles are as small as 64*64 px.So I have to scale the map up a little bit.TMXTilemap is handy but its render method ...
1
vote
1answer
179 views

OpenGL - Disable Anti Alias

I can't find anything on how to hint to the driver to disable any antialias. I'm using a very minimal passthrough setup yet I notice my driver is still doing what looks like MSAA. I want to disable ...
1
vote
0answers
48 views

Multisampling Gamma Correction Problem

I have multisampled rendertarget where I use red channel as stencil data, but the problem is I get incorrect results around borders if "Antialiasing - Gamma Correction" is set to on in Nvidia Control ...
1
vote
0answers
373 views

With 2 superposed cameras at different depths and switching their culling masks between layers to implement object-selective antialising:

We superposed two cameras, one of which uses AA as post-processing effect (AA filtering is cancelled). The camera with the AA effect has depth 0 and the camera with no effect has depth 1 as can be ...
0
votes
1answer
1k views

Why is anti aliasing not being applied to my 2D objects in Unity?

I am drawing 2D objects in Unity. Some of these objects are drawn using the standard sprite method that is built into Unity. Others are computed as distance functions in a shader. In both cases I ...
0
votes
1answer
213 views

GraphicsAdapter lacks a definition for CheckDeviceMultiSampleType

The MSDN is really confusing about this, with all their different versions of XNA jumbled together for my google results. All I want to do is find out, in XNA 4.0, what antialiasing modes are ...
0
votes
1answer
62 views

What is the highest quality way to render warped text on Windows?

I need to render highly readable text, on par with DirectWrite+Cleartype+Truetype. The Cleartype system uses sub-pixel anti-aliasing. DirectWrite takes things a step further and moves letters around ...
0
votes
2answers
262 views

How to correctly enable anti aliasing in XNA?

In my project when I add graphics.PreferMultiSampling = true; this line in the Game1 Constructor (as the msdn website suggests), anti aliasing does not enable. Any idea what I might be missing ? Here ...
0
votes
1answer
92 views

How to implement CMAA

First, here's the link to the actual article that describes CMAA and how to do it. https://software.intel.com/en-us/articles/conservative-morphological-anti-aliasing-cmaa-update My problem is that I ...