Texture mapping is a method for adding detail, surface texture (a bitmap or raster image), or color to a computer-generated graphic or 3D model.
Questions tagged [texture-mapping]
971 questions
70
votes
1 answer
Texture Mapping in 3D Object (.pod) not happening correctly using isgl3D
I have used a 3D iphone (.pod) model, its showing correctly in PVRShammon.
But when I imported that 3D model into isgl3D, its not showing correctly with the textured image, the image is covering only some of the areas of the object with some lines…

Infaz
- 1,133
- 9
- 19
42
votes
5 answers
THREE.js generate UV coordinate
I am working on importing a model into a scene using the THREE.js OBJ loader.
I know that I am able to import the geometry fine, because when I assign a MeshNormalMaterial to it, it shows up great. However, if I use anything that requires UV…

Cabbibo
- 1,371
- 3
- 17
- 30
39
votes
2 answers
How can I pass multiple textures to a single shader?
I am using freeglut, GLEW and DevIL to render a textured teapot using a vertex and fragment shader. This is all working fine in OpenGL 2.0 and GLSL 1.2 on Ubuntu 14.04.
Now, I want to apply a bump map to the teapot. My lecturer evidently doesn't…

lofidevops
- 15,528
- 14
- 79
- 119
25
votes
5 answers
Difference between UV and ST texture coordinates
What's the difference between a UV texture coordinate vs. ST texture Coordinate?
I know that UV and ST are used in OpenGL.
I also know that ST are also used in Java.

Nabmeister
- 755
- 1
- 11
- 20
21
votes
1 answer
Image manipulation and texture mapping using HTML5 Canvas?
In a 3D engine I'm working on I've succesfully managed to draw a cube in 3D. The only method to fill the sides is using either a solid color or gradient as far as I'm concerned. To make things more exciting, I'd really love to implement texture…

pimvdb
- 151,816
- 78
- 307
- 352
18
votes
7 answers
How to use GL_REPEAT to repeat only a selection of a texture atlas? (OpenGL)
How can I repeat a selection of a texture atlas?
For example, my sprite (selection) is within the texture coordinates:
GLfloat textureCoords[]=
{
.1f, .1f,
.3f, .1f,
.1f, .3f,
.3f, .3f
};
Then I want to repeat that sprite N…

Kriem
- 8,666
- 16
- 72
- 120
15
votes
3 answers
OpenGL: Trouble with Render to Texture & Framebuffer Object
I'd like to render a scene to an initially empty texture. To do so, I use a Framebuffer Object to which I attach an empty 2d texture and a depth buffer. After the set up, as for testing, I draw a simple quad into the scene. Every vertex has a…

Walter
- 396
- 1
- 5
- 16
12
votes
2 answers
OpenGL4.5 - bind multiple textures and samplers
I'm trying to understand Textures, Texture Units and Samplers in OpenGL 4.5. I'm attaching a picture of what I'm trying to figure out. I think in my example everything is correct, but I am not so sure about the 1D Sampler on the right side with the…

Carlos Romero
- 698
- 8
- 18
12
votes
1 answer
Creating a sphere that looks like Earth
How can you create a sphere in POV-Ray that looks like Earth? Presumably the answer would involve taking some kind of map of Earth and somehow wrapping it around a sphere as a texture. A Google search got me as far as…

rwallace
- 31,405
- 40
- 123
- 242
12
votes
3 answers
What is the correct behavior when both a 1D and a 2D texture are bound in OpenGL?
Say you have something like this:
glBindTexture(GL_TEXTURE_2D, my2dTex);
glBindTexture(GL_TEXTURE_1D, my1dTex);
glBegin...
What is the correct OpenGL behavior? To draw the 1d texture, the 2d or both? For each active texture are there actually…

Chris
- 6,642
- 7
- 42
- 55
11
votes
3 answers
texture mapping a trapezoid with a square texture in OpenGL
I've been trying to render a GL_QUAD (which is shaped as a trapezoid) with a square texture. I'd like to try and use OpenGL only to pull this off. Right now the texture is getting heavily distorted and it's really annoying.
Normally, I would load…

ct_
- 1,189
- 4
- 20
- 34
10
votes
1 answer
How to make a texture always face the camera ..?
Update 5
Created another fiddle to show what is expected would look like. An invisible skydome and a cubecamera are added and environment map is used; in my case, none of these technique should be used for the reasons already mentioned.
var…

Ken Kin
- 4,503
- 3
- 38
- 76
10
votes
2 answers
Vulkan texture rendering on multiple meshes
I am in the middle of rendering different textures on multiple meshes of a model, but I do not have much clues about the procedures. Someone suggested for each mesh, create its own descriptor sets and call vkCmdBindDescriptorSets() and…

Michael Wei
- 185
- 2
- 10
10
votes
2 answers
Texture mapping in MATLAB
I have points in 3D space and their corresponding 2D image points. How can I make a mesh out of the 3D points, then texture the triangle faces formed by the mesh?

worbel
- 6,509
- 13
- 53
- 63
10
votes
2 answers
How to convert a 3D point on a plane to UV coordinates?
I have a 3d point, defined by [x0, y0, z0].
This point belongs to a plane, defined by [a, b, c, d].
normal = [a, b, c], and ax + by + cz + d = 0
How can convert or map the 3d point to a pair of (u,v) coordinates ?
This must be something really…

tigrou
- 4,236
- 5
- 33
- 59