Questions tagged [uv-mapping]

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

286 questions
0
votes
1 answer

Mapping random 2D shape to uv parametric rectangular grid

I want to map some random 2D shape to uv parametric space, e.g A: (u: 0.0 v: 1.0) B: (u: 0.0 v :0.0) C: (u: 1.0 v: 1.0) D : (u:1.0 v: 0.0), and want to map a random point P, at the inside of the item, to the parametric space. Line AB, AC, BD, CD…
andkspark
  • 3
  • 1
0
votes
1 answer

THREEJS json model - uv map issue

looking at the json file of a 3d model i saw this line "uvs":…
Diagonal Think
  • 323
  • 1
  • 3
  • 14
0
votes
1 answer

Making a map overlap a DTM and export to 3D object

I would like to know if anyone knows how to make a map overlap a DTM (digital terrain model) ou DEM. For my part, I used QGIS plugins openLayers and QGIS2Threejs. The problem with this method lies in the resulting 3D model export : no UV is…
Fred Coud
  • 127
  • 1
  • 1
  • 13
0
votes
1 answer

Procedural texture uv error

I am creating a game with procedural generated plane and uv, it works mostly fine, but there is one place where the uv seems distorted in a very confusing way. Intro: the uv is mapped in a "Global" uv coordinates, instead of a local one, because the…
0
votes
0 answers

Surface automatic UV mapping in THREEJS

Is it possible to use some big texture to "cover" some surface mesh to achieve an effect with THREEJS like this: , without manual UV mapping? (I have TIN and point cloud as "surface source") interactive demo I need it for interactive 3D heatmap…
SalientBrain
  • 2,431
  • 16
  • 18
0
votes
1 answer

Maya Python - stack similar uv shells

I have a tool that will take multiple meshes and atlas their textures together. The meshes are duplicated and the UVs are layed out with pm.polyMultiLayoutUV. example - pm.polyMultiLayoutUV(sc=1, rbf=1, lm=1, l=2, ou=0, ov=0, sv=1, su=1, psc=0,…
ghost654
  • 161
  • 2
  • 18
0
votes
2 answers

Three js facevertex uv map triangles: how to scale 1 direction only

I currently have a city based on the example of Mr Doob's tutorial: "How to do a procedural city in 100 lines". In the tutorial you can see the that he creates 100 building meshes which then get merged into 1 city mesh for performance reasons. Then…
HermanChan
  • 65
  • 1
  • 8
0
votes
1 answer

UV-mapping a BufferGeometrys indices in Three.js

I'm having trouble UV mapping each side of a cube. The cube was made as a BufferGeometry where each side is a rotated copy of one side (sort of a working template) and rotated accordingly by applying a quarternion. UVs are copied as well. I'll skip…
Hoxer
  • 3
  • 4
0
votes
1 answer

Pymel: finding UV coordinates for specified face

In pymel what would be the best way to find the Uv coordinates of a specified face (in this case the face is a quad and has its UVs are layed out just for that face so it is only connected to 4 UVs) Thanks
ghost654
  • 161
  • 2
  • 18
0
votes
1 answer

Android texture mapping - incorrect mapping with a PNG file

I'm no expert when it comes to opengles but I have been using it for a lot of my applications. I created a new app to refresh myself on opengles and I got a square to draw. Now I applied texture mapping and it was mapping incorrectly. I checked the…
semajhan
  • 708
  • 3
  • 11
  • 24
0
votes
1 answer

LSCM implementation by OpenNL shows overlapping triangles in its UV mapping

I am using the Least square conformal map algorithm implemented by opennl without any change. With the spectral mode of the algorithm I get overlapping triangles in the UV mapping. For a cone triangulated object, it shows the following…
Tahlil
  • 2,680
  • 6
  • 43
  • 84
0
votes
0 answers

How would I use rasterization to create a texel to primitive texture-map - DirectX 11

I have written a compute shader that is intended to use the UV coordinates of 3 vertices making up a primitive, as well as the texel coordinate (dispatchThreadID.xy) to achieve rasterization. I am attempting to return a texture that for each texel,…
0
votes
0 answers

Finding UV coordinates of a point on material rendered on 3D cube in threejs

I want to calculate the UV co-ordinates of a single point of a material rendered on 3D cube. I am finding the mouse pointer intersection with the camera ray using THREE.Raycaster as: mouse.x = (event.clientX / window.innerWidth) * 2 - 1; …
0
votes
0 answers

textureProj in GLSL gives nan and inf

following scenario: i'm creating an OpenGL texture and a framebuffer and associated objects GLuint frameBuffer = 0, colorBuffer, depthBuffer; glGenFramebuffers(1, &frameBuffer); int maskRenderingWidth = 1 * settings.width, maskRenderingHeight = 1…
plazmakeks
  • 161
  • 1
  • 10
0
votes
1 answer

Change obj model material in three.js

I have a 3D model with UV mapping created in blender. I applied the UV mapping in a way that the texture is only applied on one side of the model. I exported the model as obj and mtl. When I import this model on three.js it works as intended and the…
Andres
  • 6,080
  • 13
  • 60
  • 110