A bitmap (raster image) used in a texture mapping process.

learn more… | top users | synonyms (1)

237
votes
20answers
164k views

Where can I find free sprites and images? [closed]

I need sprites and images, such as characters, landscapes and others. Where can I find them?
38
votes
1answer
3k views

How AAA games use this texture in the tone-mapping shader?

I found that Battlefield 3 as well as Saint's Row the Third use this texture in their final tone-mapping stage. Can anyone share a link to an article about how this texture is used? UPDATE: As ...
32
votes
6answers
14k views

Why are textures always square powers of two? What if they aren't?

Why are the resolution of textures in games always a power of two (128x128, 256x256, 512x512, 1024x1024, etc.)? Wouldn't it be smart to save on the game's file size and make the texture exactly fit ...
29
votes
6answers
7k views

How can I make a good-looking explosion particle effect?

I'm not much of an artist, but I'm trying to make decent particle effects in a 2.5D game. I'm making a replica of Wii Play's "Tanks" and I can't quite get the explosions to look good. I'm not going ...
26
votes
9answers
16k views

Texture packing algorithm

What is a good texture packing algorithm? Technically, bin packing is NP-hard, so a heuristic is what I'm really after.
25
votes
4answers
12k views

why would you use textures that are not a power of 2?

In the early days of OpenGL and DirectX, it was required that textures were powers of two. This meant that interpolation of float values could be done very quickly using shifting and such. Since ...
23
votes
6answers
7k views

Creating a retro-style palette swapping effect in OpenGL

I'm working on a Megaman-like game where I need to change the color of certain pixels at runtime. For reference: in Megaman when you change your selected weapon then main character's palette changes ...
20
votes
4answers
11k views

How to avoid texture bleeding in a texture atlas?

In my game there is a Minecraft-like terrain made out of cubes. I generate a vertex buffer from the voxel data and use a texture atlas for looks of different blocks: The problem is that the texture ...
20
votes
6answers
4k views

What happened to procedurally generated textures?

I recall some time ago that procedurally generated textures were becoming a big deal that a lot of people/companies were really interested in with some serious benefits (smaller deployments, ...
19
votes
4answers
11k views

What are 3D textures?

Google has failed me, I could not find anything informative. So perhaps GameDev can :). What are 3D textures? When are they used? Performance costs? How are they stored? I have many vague ideas, ...
17
votes
5answers
4k views

Procedural Planets, Heightmaps and Textures

I am currently working on an OpenGL procedural planet generator. I hope to use it for a space RPG, that will not allow players to go down to the surface of a planet so I have ignored anything ROAM ...
16
votes
3answers
6k views

How does Megatexture work?

I've been thinking about developing a small engine not only to develop small experimental games, but also to serve as a base to test various rendering techniques and things like that. Right now I've ...
15
votes
2answers
5k views

What exactly is UV and UVW Mapping?

Trying to understand some basic 3D concepts, at the moment I'm trying to figure out how textures actually work. I know that UV and UVW mapping are techniques that map 2D Textures to 3D Objects - ...
14
votes
7answers
11k views

What are some cool examples of procedural pixel shader effects? [closed]

What are some good examples of procedural or screen-space pixel shader effects? No code is necessary; I'm just looking for inspiration. In particular, I'm looking for effects that are not dependent ...
14
votes
1answer
613 views

Suitability of ground fog using layered alpha quads?

A layered approach would use a series of massive alpha-textured quads arranged parallel to the ground, intersecting all intervening terrain geometry, to provide the illusion of ground fog quite ...
13
votes
4answers
2k views

Avoid double compression of resources

I am using .pngs for my textures and am using a virtual file system in a .zip file for my game project. This means my textures are compressed and decompressed twice. What are the solutions to this ...
13
votes
5answers
4k views

Tools for generating texture atlases/sprites from source images? [closed]

Is there an industry standard file format for texture atlases? What are the apps that take a directory of images and turns it into a texture atlas png and a text file describing what's on it? This ...
12
votes
6answers
1k views

How can I create my own sky maps?

What are the methods/tools for generating realistic skies with clouds and atmospheric shading? FOSS alternatives and spherical projections get extra points.
12
votes
2answers
1k views

Should I be using spritesheets, because of or despite of my vast number of images?

I am developing a 2D game, and I have a lot of sprites. I used 3D animations and models to render into 2D, to give them that "Fallout" or "Diablo" look to them. It is also easier than drawing by hand, ...
12
votes
1answer
676 views

What is a texture atlas?

I've heard about this concept, but what is it?
12
votes
1answer
4k views

Procedural Mesh: UV mapping

I made a procedural mesh and now I want to apply a texture to it. The problem is, I cannot get it to stick the way I want it to. The idea is to have the texture painted only once over the whole ...
12
votes
2answers
1k views

Speeding up procedural texture generation

Recently I've begun working on a game that takes place in a procedurally generated solar system. After a bit of a learning curve (having neither worked with Scala, OpenGL 2 ES or Libgdx before), I ...
11
votes
7answers
5k views

Best (Most Popular?) Image Format For Texturing [closed]

Okay, so I am using C++ with OpenGL, and I am going to create a loader to load in textures for my 3D game. (But the textures are 2D). I want the option of transparency, even if I decide not to use it. ...
11
votes
2answers
456 views

How can I generate a texture that looks like left-over tea leaves?

We are working on a project for iPhone and Windows Phone 7 where we'd like to be able to generate tea leaves at the bottom of a cup. It doesn't have to look photo-realistic, and actually cartoon-y is ...
11
votes
3answers
717 views

How on earth do you get decent color out of 2BPP?

I've been looking into PowerVR textures, and have run into several textures that are apparently 2 bits per-pixel. This, frankly, boggles my mind. How does one get even half way decent color ...
11
votes
1answer
3k views

How does UVW texture mapping work?

I'm trying to understand the mathematical theory behind UVW mapping. Can anyone explain me how UVW mapping works? Or at least provide me a pointer?
11
votes
1answer
886 views

How do 2D art assets (eg. sprites) work?

I have an idea on a game and planning on developing a 2D game using XNA for Windows Phone 7. I've started off today by free hand drawing some concept art of what I want some of the characters to ...
11
votes
4answers
4k views

How to deal with arbitrarily large images in 2D games?

Question When you have a 2D game that uses really large images (larger than your hardware can support), what do you do? Maybe there's some interesting solution to this problem that never occured to ...
11
votes
1answer
499 views

XNA Adding Craters (via GPU) with a “Burn” Effect

I am currently working on a 2D "Worms" clone in XNA, and one of the features is "deformable" terrain (e.g. when a rocket hits the terrain, there is an explosion and a chunk of the terrain disappears). ...
11
votes
5answers
30k views

How can I get started making textures for 3D games? [closed]

Just wondering where to find good tutorials on making textures for 3D games? Also, is it common practice to take photographs and convert them into game textures or do designers draw the textures ...
10
votes
1answer
964 views

How to reduce image size without pixelation?

I see lots of games with smooth edges characters and high res images, however when I try to reduce images to say 64x64 for my character I just get a pixelated mess. even if I start with a 64x64 canvas ...
10
votes
5answers
669 views

Texturing an asteroid

I'm trying to texture this asteroid so it looks reasonable. I'm missing something though. Following this tutorial, I got this so far. Now I don't understand the next step: how do you resolve the ...
10
votes
4answers
11k views

Preferred way to render text in OpenGL

I'm about to pick up computer graphics once again for an university project. For a previous project I used a library called FTGL that didn't leave me quite satisfied as it felt kind of heavy (I tried ...
10
votes
4answers
945 views

Megatexturing : Evolution from Quake Wars to Rage

I remember John Carmack talking about how they initially used Megatexturing for Quake Wars: Enemy Territory. The technology has since evolved quite a bit in Rage. I was wondering if somebody here ...
10
votes
2answers
219 views

Should the color of a texture be adjusted for display on a television?

If a 24bit RGB image with a range of 0-255 per channel is displayed on a television that displays a range of approx. 16-235 per channel, color detail will be lost, correct? If so, should images be ...
10
votes
5answers
3k views

Skybox texture artifact on edge

I have strange problem with drawing skybox texture on Mac. On iPhone everything is going fine. I have tried to change near and far planes value with no success. It is a skybox of six textures, and ...
9
votes
2answers
743 views

Should the content pipeline tools be embedded in the engine?

How minimal should a games engine be? How much of the content pipeline should be embedded in the engine? Some use cases where the super engine might be useful: When loading user content, the user ...
9
votes
1answer
4k views

Max texture size Android : which settings for 2048x2048?

I want to use a texture atlas of 2048 x 2048 in my game, and I would like to warn the users with a "too low" device to not download the game. With a texture atlas of this size, what requirements ...
9
votes
2answers
1k views

Why are some games using some dithering pattern instead of traditional alpha for transparency?

Recently, I have seen some 3D games (eg: GTA IV) to use some kind of ordered dithering to simulate transparency / alpha. The polygons are not transparent as usual, but instead render a dithering ...
9
votes
2answers
729 views

Half-Life 2 BSP Lightmaps

I'm writing a BSP viewer for a university project. So far I have the main geometry loaded properly, and the PVS working. Now I'm trying to apply the lightmaps, but I can't seem to get the texture ...
8
votes
2answers
8k views

How many textures can usually I bind at once?

I'm developing a game engine, and it's only going to work on modern (Shader model 4+) hardware. I figure that, by the time I'm done with it, that won't be such an unreasonable requirement. My ...
8
votes
1answer
1k views

What technology does Starcraft 2 use render its maps?

I've got a map that is being procedurally generated at run-time and I'm currently investigating methods of rendering this map. I've taken an interest in the look of Starcraft 2 and I'd like some ...
8
votes
3answers
509 views

Why is it possible to encounter a texture coordinate greater than 1 or less than 0

I'm studying a text about texture mapping and in the preparing to draw session, I read: Define the texture wrapping parameters. This will control what happens when a texture coordinate greater than ...
8
votes
3answers
1k views

Very slow direct3D texture sampling

So I'm writing a small game using Direct3D 9 and I'm using multitexturing for the terrain. All I'm doing is sampling 3 textures and a blend map and getting the overall color from the three textures ...
8
votes
1answer
855 views

Procedurally generated terrain map. Blend Transitions between terrain types

The question isn't the greatest wording ever sorry. I have been learning about and prototyping some texture and terrain generation stuff and have run into something perhaps you can help me with. How ...
8
votes
1answer
621 views

Why is my custom Texture2D blurry?

Have some WWW object downloading a .PNG image. ((SpriteRenderer)renderer).sprite = Sprite.Create(request.texture, new Rect(0,0,100,100)); My sprite looks fine. Now, let's be a bit ...
8
votes
3answers
783 views

What is a good method for coloring textures based on a palette in XNA?

I've been trying to work on a game with the look of an 8-bit game using XNA, specifically using the NES as a guide. The NES has a very specific palette and each sprite can use up to 4 colors from ...
8
votes
1answer
279 views

Is there any difference between storing textures and baked lighting for environment meshes?

I assume that when texturing environments, one or several textures will be used, and the UVs of the environment geometry will likely overlap on these textures, so that e.g. a tiling brick texture can ...
8
votes
3answers
3k views

Premultiplied alpha, yea or nay?

Should I be using premultiplied alpha? Reading Tom Forsyth's article it seems a nobrainer. Premultiplied alpha (AKA additive blending) is superior in every sense. However, premultiplied alpha seems ...
8
votes
2answers
485 views

How can I implement a scanline effect?

I am working on an old-school platformer in libgdx and I want it to have a "scanline" effect, like this: My first attempt was to make a little texture and draw it on a full-screen quad. I used two ...