UV mapping is the 3D modeling process of making a 2D image representation of a 3D model.
Questions tagged [uv-mapping]
286 questions
5
votes
1 answer
Three.js Efficiently Mapping Uvs to Plane
I'm working on a game where there are many walls of the same texture but at different lengths/heights. Currently I am cloning a base texture and setting the repeat values for each wall. This creates to many textures in memory.
What I want to do is…

Hobbes
- 781
- 10
- 29
5
votes
0 answers
How to map texture on a custom non square quad in THREE JS
playing around with ThreeJS, i encoutered a classic problem of non square quad texturing :
http://www.xyzw.us/~cass/qcoord/
Problem is ThreeJS only let you set texture coordinates with a vec2 (for what i know ..)
And after spending hours on this,…

PBV
- 89
- 10
5
votes
2 answers
OpenGL UV mapping for a sphere (having seam)
I have the following issue when trying to map UV-coordinates to a sphere
Here is the code I'm using to get my UV-coordinates
glm::vec2 calcUV( glm::vec3 p)
{
p = glm::normalize(p);
const float PI = 3.1415926f;
float u =…

tvoloshyn
- 407
- 8
- 22
5
votes
0 answers
UV/Texture Mapping in Python
I have on quick question. I want to know if it is possible to perform UV/Texture mapping within python. I know I would probably need to import a module or two. But I haven't too many examples of how to perform UV/texture mapping in python.
If it…

user1750948
- 719
- 2
- 10
- 27
4
votes
1 answer
How to animate texture coordinates in javafx
Is there some kind of animation for liquid surfaces that mimics waves by animating uvcoordinates like in the picture below?
Can this method be recreated in the JavaFX framework?

Giovanni Contreras
- 2,345
- 1
- 13
- 22
4
votes
1 answer
Automatic UV Unfold/Unwrap
I tried to find library that can unfold UV for my 3D meshes, but found only complete tools. Can you suggest library?

KindDragon
- 6,558
- 4
- 47
- 75
4
votes
0 answers
ThreeJS UV Mapping on Umbrella model
I have a kind of a specific problem that I was not able to find solution for. I am making a software for applying image to 3D model of umbrella. The umbrella model is dynamically created based on some parameters inserted by administrator of the…

ibrcic
- 756
- 1
- 6
- 12
4
votes
1 answer
Which corner do UVs start in on default three.js planeGeometry?
I'm writing a deformer which modifies the position of a plane's vertices, using UVs as a completion ratio – so if the UV of a vertex is (.5,.5), it's in the center of the plane.
An image linked from (Three.js) Custom Mesh UV Display Texture Properly…

meetar
- 7,443
- 8
- 42
- 73
4
votes
2 answers
how do I do "reverse" texture mapping from texture image x,y to 3d space?
I am using WPF 3D, but I think this question should apply to any 3d texture mapping.
Suppose I have a model of a cow, and I want to draw a circular spot on the cow (and I want to do this dynamically -- supposed I don't know the location of the spot…

M Katz
- 5,098
- 3
- 44
- 66
4
votes
2 answers
Displacement Map UV Mapping?
Summary
I'm trying to apply a displacement map (Height map) to a rather simple object (Hexagonal plane) and I'm having some unexpected results. I am using grayscale and as such, I was under the impression my height map should only be affecting the Z…

rrowland
- 2,734
- 2
- 17
- 32
3
votes
1 answer
GLSL texture coordinate to absolute pixel?
my question regards how a texturecoordinate exactly maps to texel in a texture (not taking into consideration filtering).
does (0,0) for example refere to the top left corner of the top left pixel or does it refere to the center of the top left…

matthias_buehlmann
- 4,641
- 6
- 34
- 76
3
votes
3 answers
Calculate the XYZ point of a sphere, given a UV coordinate of its texture
I have a sphere in 3D. At runtime i'm generating a dynamic 2048x1024 texture for it. On this texture a tiny circle is drawn, which could be anywhere. I have the x/y of this circle on the texture, and consequently the corresponding UV…

Brad
- 31
- 1
- 1
- 2
3
votes
1 answer
THREE.JS | Delaunator.JS THREE.BufferGeometry UV mapping
That's really weird, but I couldn't find any solution for uv mapping Delaunator.JS outputs.
Let's say I have a very basic set of points defined by:
for(var z = -512; z <= 512; z += 256){
for(var x = -512; x <= 512; x += 256){
…

VVK
- 435
- 2
- 27
3
votes
0 answers
How to create UV texture for three.js spline extrusion? Would be really useful for paths, roads and railroads
If anyone could help me with texturing, this would be really useful for anyone wanting to make roads or railroads etc.
I've got a shape, and I extrude it with a spline. And I have a mesh animating along the spline also (which could be a car or…

Will Ormerod
- 91
- 1
- 4
3
votes
1 answer
Texture coordinates shift when apply Y rotation in vertex shader
Im trying to rotate plane from two triangles in shader.
everything goes fine except i cant understand what with the UV coordinates values happens when i applying rotation.
How i can perform this rotation with expected results?
this looks as UV…

Stranger in the Q
- 3,668
- 2
- 21
- 26