Questions tagged [textures]

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

A texture is a bitmap (raster image) used in a texture mapping process. A texture should not be confused with a texture mapping which is a process, where texture is used.

See also mipmap.

1529 questions
62
votes
7 answers

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 the UV unwrapped model? What would happen if there…
Keavon
  • 849
  • 1
  • 6
  • 15
44
votes
3 answers

Why are examples of game textures often represented on a sphere model?

I have recently started working with Unity and was looking for textures for the background (castle walls and such pieces) on a game that I am thinking about eventually building. I noticed that the textures are often represented as ball shaped, such…
21
votes
3 answers

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 been thinking a lot about how to handle textures…
Daemoniorum
  • 431
  • 1
  • 3
  • 7
10
votes
3 answers

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 to have one major drawback, it's not well…
deft_code
  • 7,602
  • 5
  • 37
  • 54
10
votes
4 answers

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 can give some technical details on the specifics on…
pdeva
  • 151
  • 5
8
votes
2 answers

One single texture atlas?

When I want to use texture atlasing, should I try to place all of my sprites into one single texture atlas? Or are there times when I should have multiple smaller texture atlases?
Aaron
  • 725
  • 1
  • 9
  • 17
8
votes
5 answers

Batch conversion of PVR to JPEG (or similar)

The command line PVRTexTool works very well for getting textures into a PVR format, but I need a way of going the opposite directions. Does anyone know of a good command line tool (or GUI with a batch mode) that will convert a PowerVR texture to a…
Toji
  • 423
  • 1
  • 4
  • 11
6
votes
3 answers

What are Textures in games development?

At any time, a game will likely have many objects rendering textures. So what is a texture? an image for example?
Chiron
  • 795
  • 1
  • 8
  • 16
4
votes
1 answer

What is the difference between these options when saving an image as a PNG in Photoshop for my game?

I'm creating sprites and tilemaps for 2D games. I might just use Unity. What is the impact of choosing different options when saving as a .png?
Sean Carey
  • 694
  • 6
  • 14
3
votes
1 answer

So, I need to create varied animal textures for my game. How would I go about doing that?

For example, one of the creatures planned is an isopod like animal. Would I need to get pictures of real animals and adjust them to my needs?
GioTech
  • 33
  • 3
3
votes
1 answer

How can I create random noise that is seamless across modular game assets?

Does anyone know how I can create a texture for a modular tile, such that when the tiles are arranged, random weathering effects such as scratches will be continuous across seams? An example photo below shows the ideal result. The scratches are…
Adam
  • 131
  • 2
2
votes
2 answers

Proper use of texture units

I'm a beginner using OpenGL v3.3 on C# with SharpGL. I have a simple scene with a Skybox and some OBJ Models. Both the skybox and models have multiple textures. Currently what I do is that I load all the textures used in the scene into different…
Sredni
  • 163
  • 5
2
votes
1 answer

Generating mipmaps for volume texture

Does texconv from DirectxTex support generating mipmaps for volume textures? If not what are the other alternatives? I am asking because I have tried to create the mipmaps by using textconv.exe -m 3 my.dds, but it looks like this (I am viewing it in…
tobi
  • 719
  • 8
  • 14
2
votes
0 answers

How do I create terrain texture maps from photogrammetry?

I want to create a terrain texture diffuse and normal map. To do that, I have capture some terrain with photogrammety: I have cleaned up the high poly model and created a lo poly model from it in ZBrush. Then I unwrapped it in ZBrush, and I got…
tmighty
  • 919
  • 13
  • 38
2
votes
2 answers

Displaying 2 textures on the same surface?

I'm messing around with XNA in a very simple Minecraft-esque world I'm making and I'm wondering how I can do the "breaking the block" visuals in XNA. If you're unfamiliar with the game, you begin interacting with the cube and based one what tool…
Corey Ogburn
  • 1,135
  • 1
  • 10
  • 21
1
2