Questions tagged [uv-mapping]

UV mapping is the 3D modeling process of making a 2D image representation of a 3D model.

286 questions
1
vote
0 answers

Apply texture to specific "square" (two triangles) of Mesh Plane unity

I am looking for a way to apply a texture to a specific square of a mesh when that square is clicked on. I know how to get the vertices of the square from a Physics.raycast & converting the triangle vertices. My problem is I don't know how to apply…
Beks_Omega
  • 404
  • 1
  • 5
  • 13
1
vote
1 answer

UV Mapping a cube in Three.js not joining faces correctly

I have successfully applied an image texture to a cube via UV mapping (to produce a photo-sphere viewer). Although the texture is perfectly aligned with cube faces, the lines at which faces join are visible as thin straight lines. The same problem…
knee-cola
  • 736
  • 8
  • 17
1
vote
1 answer

Determine fourth set of UV coordinates from the first three

Say that I have a quad, and I am applying a pool table texture to it. I know the UV coordinates for the first three vertices (highlighted in blue) but not the fourth. For example in the image above, I know that the top left coordinates are [0, 0],…
tomysshadow
  • 870
  • 1
  • 8
  • 23
1
vote
0 answers

Texturing bug in Jmonkey

To my immense surprise, it seems impossible to find any other people having this problem -- I can use Jmonkey to import a mesh (in my case a gear), but it doesn't properly map the texture (which is supposed to look like wood), only texturing a few…
Liverwurst
  • 55
  • 5
1
vote
2 answers

Smoothly mapping a 2D uv point onto a 3D xyz sphere

I have been trying to procedurally generate a sphere's surface using simplex noise, and I figured that in order to get smooth, non-distorted noise I need to map each uv pixel to an xyz coordinate. I have tried a few different algorithms, with the…
Matthew
  • 160
  • 9
1
vote
1 answer

How to calculate UVs of a flat poligon mesh

My game generates a flat surface (the floor of a building). It's a flat poligon mesh as shown in the picture: The poligon is generated procedurally and will be different each time. I need to map UV coordinates so that a standard square texture of,…
kace91
  • 821
  • 1
  • 10
  • 23
1
vote
2 answers

put textures in cinema4d

Problem I have my obj on scene4d (i downloaded it from internet). When I open it with cinema4d it loads the materials but it doesn't put the textures on the object
Dani Roca
  • 82
  • 6
1
vote
1 answer

Number of points in UV sphere

I'm trying to generate a mesh from a sphere of radius r. My goal is to create a UV sphere such that every point on the polyhedron has distance from the sphere smaller than tol. The following code creates a grid of points on the sphere. How can I…
sgiulia
  • 31
  • 4
1
vote
0 answers

UV mapping a proceduraly generated sphere in OpenGL

I'm trying to UV a 2D texture on a globe. Here's a piece of code: double delta = 0.0, // angle of latitude theta = 0.0, // angle of longitude theta_interval = (2.0 * M_PI) / latitude, // angle of latitude delta_interval = M_PI /…
matzar
  • 287
  • 2
  • 19
1
vote
0 answers

How can I associate my Texture with my custom geometry

I'm a very green newb attempting to understand textures and geometries. I don't know what's wrong with my code, someone have one idea.... var loader = new THREE.STLLoader(); loader.load('../Programa/imagens/imagem.stl',function (geometry){ var…
1
vote
2 answers

UV unwrap on Runtime optimization

I'm trying to create UVs @ runtime, I'm using a BOX type UVs (similar to BOX UVW in 3ds max) and based my calculation on the face orientation. I know it's not a good option to create it a runtime but I have no choice :( it's saved after…
1
vote
1 answer

Blender import three.js json model with UV map

I guess not much people need to import three.js json file to Blender, but I lost my original Blender file and want to recreate it from json that I exported earlier. Latest three.js git only has exporter and no importer. I tried using old json…
pera
  • 882
  • 11
  • 21
1
vote
1 answer

How are UV coordinates measured?

I've got a 3D modeling program exporting a UV mapped 3D model. However the UV coordinates seem to be invalid or using a system I don't understand. I need help in understanding how UV coordinates map to the pixels of the bitmap (X, Y) I've got a…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
1
vote
1 answer

Why are texture UV map changed for all cubes?

I am trying to change and resize textures put on faces of bilt-in cube in Unity. Without any problems I managed to put different image on every face with this code: void Start() { Mesh mesh = GetComponent().mesh; Vector2[] UVs =…
Łukasz Motyczka
  • 1,169
  • 2
  • 13
  • 35
1
vote
3 answers

Texture UV coords not lining up as expected in Unity3D

I'm creating a mesh programmatically in Unity3D. Each section of the mesh is setup with 4 verts: // 1 ----- 2 // | a / | // | / b | // 3 ----- 4 My UVs are: 1 = 0, 1 2 = 0.125, 1 3 = 0, 0.875 4 = 0.125, 0.875 My texture is 2048x2048. The tile…
Justin808
  • 20,859
  • 46
  • 160
  • 265