Questions tagged [textures]

Textures are series of images used in computer graphics to associate locations on a visible surface with varying values. This association is typically done by mapping locations on the texture (usually two-dimensional, but other dimensions and types of textures exist) to locations on the rendered surface. Filtering is often used to smooth away aliasing when sampling values from the texture, usually involving multiple images within a texture called mipmaps.

In 3D graphics, the digital representation of the surface of an object. In addition to two-dimensional qualities, such as color and brightness, a texture is also encoded with three-dimensional properties, such as how transparent and reflective the object is. Once a texture has been defined, it can be wrapped around any 3-dimensional object. This is called texture mapping.

Well-defined textures are very important for rendering realistic 3-D images. However, they also require a lot of memory, so they're not used as often as they might be. This is one of the rationales for the development of the new graphics interface, AGP, which allows texture to be stored in main memory, which is more expansive than video memory. AGP also speeds up the transfer of large textures between memory, the CPU and the video adapter.

5888 questions
2
votes
1 answer

how to control texture repetition on model by map_Kd texture.png in .mtl file

How to control texture repetition on my model. texture is applied by map_Kd texture.png in .mtl file newmtl material_0 Ns 10.000000 Ni 1.500000 d 1.000000 Tr 0.000000 Tf 1.000000 1.000000 1.000000 illum 9 stren 0.000000 Ka 0.588000…
Deepak3301086
  • 447
  • 2
  • 23
2
votes
1 answer

Can you add a texture to an XNA project with code?

I've been trying to develop games recently, so I've just started learning XNA today, after finally throwing in the towel on a WinForms game. So, I know that you are SUPPOSED to load textures in using the Visual Studio solution explorer, but is there…
ApachePilotMPE
  • 183
  • 2
  • 14
2
votes
1 answer

OpenGL-ES variable texture alpha (2D)?

I have a texture with transparency (the white triangle with that lighting information), and just can't make it's alpha variable. alt text http://gotoandplay.freeblog.hu/files/alpha_help.png The drawing code, with the missing piece: //Place polygon…
Geri Borbás
  • 15,810
  • 18
  • 109
  • 172
2
votes
1 answer

Texture/background Image for polygon

I'm writing a tiled game board with hexagonal shape tiles using java swing. I'm able to draw polygon with help of this SOF thread. Now I want to add background image to these hexagons and I have totally no idea how to do this. Here is a tutorial…
Alireza Farahani
  • 2,238
  • 3
  • 30
  • 54
2
votes
1 answer

LWJGL: Discolored Textures

So I am developing a small Pong replica simply for some practice with LWJGL. Since there is no easy way to write customizable text in LWJGL, I am using textures for the start button, other buttons, and so on. However, when I drew the texture, it…
Zach_1919
  • 107
  • 6
2
votes
2 answers

build a tiled big texture from other textures

I am making a unity 2D RTS game and I thought of using a big texture for the tiled map (instead of a lot of textures - for the memory reasons...). The tiled map is supposed to generate randomly at runtime so I don't want to save a texture and upload…
galhajaj
  • 125
  • 1
  • 10
2
votes
0 answers

JSON 3D model textures are not shown

I have been able to load and render 3D models along corresponding textures from 3D model files with OBJ format using three.js API. I wanted to try loading models with JSON (.js) format. So I download a 3D model (this mill) and converted it to JSON…
Farzad
  • 3,288
  • 2
  • 29
  • 53
2
votes
1 answer

OpenGL ES 2.0 Vertex Shader Texture Reads not possible from FBO?

I'm currently working on a GPGPU project that uses OpenGL ES 2.0. I have a rendering pipeline that uses framebuffer objects (FBOs) as targets, i.e. the result of each rendering pass is saved in a texture which is attached to an FBO. So far, this…
IsaacKleiner
  • 425
  • 2
  • 13
2
votes
1 answer

android opengl texture overlapping

i am following nehe's tutorials. i intent to make a menu or at least buttons with opengl, yet object overlap on the menu my code on the drawFrame function in the renderer gl.glLoadIdentity(); gl.glScalef(0.05f, 0.05f, 0.05f); …
Alp
  • 1,863
  • 1
  • 20
  • 38
2
votes
1 answer

applique texture using glTextCoordPointer

I'm drawing my points like that : TAB_PAS = 2; glVertexPointer(TAB_PAS,GL_FLOAT,0,test[0].send_terrain()); glDrawElements( GL_LINES, indice_degra_de.size(), GL_UNSIGNED_INT,…
2
votes
1 answer

border parameter in glTexImage2d

I have 2 questions on opengl Texture borders: I know how texture borders are present in 2D textures, ( a strip of 1 texel wide along X an Y dimension). May be in 3D textures it is a strip of 1 texel along X, Y , and Z dimension? But what about 1D…
viktorzeid
  • 1,521
  • 1
  • 22
  • 35
2
votes
2 answers

Android layout background xml texture

I searched a lot but didn't find anything. I want to make a background for a layout , but instead of filling it with a color or a gradient I want to fill it with a texture and repeat it . I tried this but it didn't work . Can you tell me a…
user3199577
  • 249
  • 2
  • 5
  • 14
2
votes
2 answers

glTexParameter every frame or on initialization

Normally I would call glTexParameter when loading/initializing a texture. However, my current use case is that the same texture image may be used with many different parameter combinations (including GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T,…
JRS
  • 1,438
  • 2
  • 16
  • 26
2
votes
0 answers

Generic way to apply texture for generic polygon using opengl

Does anyone knows a generic way to apply glTexCoord2f to generic polygons? For circles, triangles and quads, it was quite intuitive, but polygons is kind a mess. For example, my equilateral triangle render is: void Triangulo::RenderizaPontos(){ …
Sinayra
  • 175
  • 1
  • 13
2
votes
1 answer

Three.js - changing collada texture works, but not with canvas

I am digging into Three.js and am experimenting with vrml, and now with collada files. Importing a collada file works. It works with webGL AND canvas as a fallback : my 3D model rotates, shows the model… and in webGL i can even have that wonderful…
dokMixer
  • 31
  • 6
1 2 3
99
100