Questions tagged [uv-mapping]

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

286 questions
2
votes
1 answer

Add Texture to custom three.js Geometry

I have been looking for a way to add uv-mapping to my custom geometry in three.js. I have found ways of doing it but none of the solutions I have found work. Could anyone explain how uv-mapping works and how to do it properly? var s = 100; var…
2
votes
1 answer

three.js Geometry.faceVertexUvs setup is confusing

I am working on implementing a custom model importer. The file contains all the necessary info (vertices, vertex normals, vertex uv coordinates, materials, etc.) It's important to note that the file contains models with multiple materials. The setup…
2
votes
0 answers

Houdini - Issue with skeletal Meshs and UV Maps

I'm having issues with skeletal meshes and UV Maps. Here is my model: Model screen capture The idea is to use the spheres as the pivot points and I don't want any deformation. Network screen capture This is my network, as you can see I have 3 bones…
Nicolas Roche
  • 105
  • 1
  • 1
  • 14
2
votes
1 answer

In Maya, using Python or Mel, how to find objects with no UV shells

I am trying to make a script that scans through all the mesh objects in a Maya scene and returns objects that have no UV shells. I've written a script that works...it uses the command findUvShells, but apparently for this application that particular…
mranim8or
  • 159
  • 2
  • 9
2
votes
0 answers

Calculating UV coordinates during mesh extrusion

I'm currently implementing a mesh extrusion algorithm for plane shapes, let's assume for a rectangle. When I extrude this rectangle I create four new sides (resulting in 8 new triangles) and a new bottom for the 3d shape. This works fine when I…
padmalcom
  • 1,156
  • 3
  • 16
  • 30
2
votes
1 answer

threejs - normalize UV coordinates to 0 and 1 issue

i have a model with UV coordinates less than 0 and greater than 1. im trying to normalize these coordinates into the range 0 and 1 but with bad results. at moment im using this function to convert any UV coordinate into my target range private…
Diagonal Think
  • 323
  • 1
  • 3
  • 14
2
votes
1 answer

Where is the documentation for "uv" and other WebGL variables?

In the three.js example "webgl_rtt.html" one can see: varying vec2 vUv; void main() { vUv = uv; gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); } webgl_rtt.html "uv" is not defined in any .js…
user5515
  • 301
  • 2
  • 18
2
votes
1 answer

How do you interpolate UV mapping coords in a triangle tessellation evaluation shader?

I tried to interpolate UV coordinates this way in my TES without success. What is the right way to do UV coordinates interpolation? I remark that I'm working with triangle tessellation. #version 450 core layout (triangles, equal_spacing, cw)…
jovchaos
  • 31
  • 4
2
votes
1 answer

Unity Surface Shader - Runtime UV mapping

I want to map a 2D Texture onto a procedurally generated plane, using vertex local position, in Unity. This is the code: Shader "Custom/planeTest" { Properties { _MainTex("Albedo (RGB)", 2D) = "white" {} _Scale("Scale of texture", Vector) =…
2
votes
2 answers

Whats the proper way to UV Map a wall?

I'm currently working a mapping tool that will generate a custom map for my game. I've got the mesh generation working perfectly but I can't seen to figure out how to correctly UV map my faces to get the textures consistent. I've got the UV map…
Kuliu
  • 171
  • 2
  • 12
2
votes
1 answer

calculate 3D coordinates from UV coordinates

I'm trying to convert the position of an object in THREE.js from a flat 2D coordinate (an annotation placed on a 2D image) to a 3D coordinate, when the image is wrapped as a texture around a 3D shape. The idea would be to place a small 3D object at…
GDUnit
  • 113
  • 2
  • 9
2
votes
1 answer

Atlas UV map vs. Local UV map

I want glow on my sprites using the UV coordinates, but the problem is, if the sprite originates from an atlas created by Unity's sprite packer, then the UV aren't normalized from 0 to 1, but from and to two arbitrary values. How do I normalize UV…
Marc Pilgaard
  • 588
  • 1
  • 5
  • 20
2
votes
0 answers

uv mapping works bad on low resolution (warning: lot of images)

TL;DR: is there a way to scale down both UV map and texture without losing the quality of the produced result? Full story: I'm trying to develop a simple rendering engine which would take UV map from .EXR file, put a texture on it and serve to the…
2
votes
0 answers

Three.js - How to update UV mapping when using morph targets?

I've been struggling with this one for hours, and found nothing either in the docs or here on SO that would point me to the right direction to achieve what I aim at. I'm loading a scene containing several meshes. The first one is used as an actual…
Jimshell
  • 21
  • 1
  • 3
2
votes
2 answers

Vertex Color to UV Map -> Remesh -> Texture mapping

I have a polygon mesh of a room in high resolution, and I want to extract vertices color information and map them as a UV map, so I can generate a texture atlas of the room. After that, I want to remesh the model in order to reduce the number of…
Finfa811
  • 618
  • 1
  • 8
  • 28