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
-1
votes
1 answer
How can I load an image as texture to a ply model in three.js
I'm trying to show a 3d model with its respective texture, how could I load the texture for a ply model?
this is in an html file where I use three.js with the plyloader.js to load the model, but I have not managed to load the texture correctly, when…
-1
votes
1 answer
What should be the vertex and fragment shaders to draw a cube with texture in version 440 core
I am following "Interactive Computer Graphics" by Ed Angel, specifically the code for rotating cube with texture. The vertex shader for this (as in the book) is as follows:
#version 150
in vec4 vPosition;
in vec4 vColor;
in vec2 vTexCoord;
out vec4…

Majis
- 203
- 1
- 2
- 6
-1
votes
1 answer
Texture Mapping a square image onto a circle OpenGl
I am trying to map a square image of a clock face onto a circle GL_POLYGON that I have created. I am currently using the following code:
float angle, radian, x, y, xcos, ysin, tx, ty;
glEnable(GL_TEXTURE_2D);
…

Kieran Lavelle
- 446
- 1
- 6
- 22
-1
votes
1 answer
Texture Mapping in GLSL
I am currently working on a project where I have to texture a cube using the reflection vector between the normal of a fragment and the camera.
I have the sampler2D picture, and I somehow have to implement it to a cube using reflection.
The…

ficabj5
- 111
- 10
-1
votes
1 answer
How to add texture to 3D model made in qubicle for export to Unity?
Being that this is the most general section of stack exchange and I didn't want to narrow the answers to using Blender I am asking this here as I haven't found a definitive answer - Im a noobie with 3D modeling but Ive done a lot with Unity3D.
I…

blue
- 7,175
- 16
- 81
- 179
-1
votes
1 answer
OpenGL - texturing mapping 3D object
I have model of skull loaded from .obj file based on this tutorial . As long as I understand texture mapping of cube (make triangle on texture in range of [0,1], select one of six side, select triangle of two triangles on this side and map it with…

Ellusion
- 43
- 2
- 7
-1
votes
1 answer
How to texture the different planes in JOGL
I've created 6 planes as a room in JOGL, now I want to texture them each with different images, so how can I do this on each plane? And also how is there any recommended texture image resource that I can use it to decorate the room?
Thank you. …

wsm
- 143
- 1
- 1
- 5
-1
votes
1 answer
How to create PBR metal material from scratch in Unity?
I'm not familiar with Physically Based Shading/Rendering, so need some tips..
Trying to make simple metallic material for cannon pipe in Unity3D (see image#1 below, that mesh is just default unity cylinder primitive)
Below are some examples of what…

mgear
- 1,333
- 2
- 22
- 39
-1
votes
1 answer
Opengl Texturing Problems
I want to load an obj model file and display it with OpenGL. It works fine until I try to load the texture. My obj loader can load only triangles. Also the colors look very different from the texture. Any advices?
Here is how the model looks like in…

Robert Puscasu
- 67
- 1
- 8
-1
votes
1 answer
Can't spot the issue with my GLSL/OpenGL code
I wrote a little program to display a 32bit float texture in a simple quad. When displaying the quad, the texture color is always black. I experimented with a lot of things, but I couldn't make it work. I'm really at loss what the problem with…

Gyula Gubacsi
- 1
- 1
-1
votes
1 answer
texturing vbos on opengl es 2.0
Im trying to render using VBO's in Opengl ES 2.0.
I set up the vbo and it shows himself quite right (a triangle in the top of the screen), and I used the fragment shader to show up the loaded texture, and it is right too.
BUT, the…

diego.martinez
- 1,051
- 2
- 11
- 25
-1
votes
1 answer
How to calculate the optimal glyph bounds in a character map for OpenGL text rendering
To render text with OpenGL I take the textured quad approach, I draw a quad for every character that needs to be represented. I store all the character texture information in a single texture, and use glScalef and glTranslatef on the texture matrix…

Josh
- 63
- 6
-1
votes
1 answer
OpenGL C++ order for using a vertex buffer and a texture buffer
I'm having issues loading a texture onto my triangle strips. I'm following Anton Gerdelan's tutorial, and after failing with my main program, I went back to the basics and just tried to make a plain square and put his texture on it (the skull and…

Shotoku
- 13
- 4
-1
votes
3 answers
Any CLI tool to perform 3d texture mapping on the fly
I'm currently looking for a way to create a 'configurator' for a upholsters, similar to http://digitaldraping.com/configurator/furniture-sofa/?Cushions_Plain-Cream.png,Sofa_Stripe-Orange.png - you select your fabrics and they are 'drawn' on the sofa…

Liam Wiltshire
- 1,254
- 13
- 26
-1
votes
2 answers
Saving opengl object to disk for later usage, including texture
I'm trying to create an openGL ES objects at run time, meaning let the user select the texture for certain objects, and later use the created object again with the same texture chosen (The user can select where to place the texture, kind of masking…

Itzik984
- 15,968
- 28
- 69
- 107