Questions tagged [uv-mapping]

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

286 questions
3
votes
0 answers

How to make Three.js Extrude Geometry use Local UV coordinates for texturing rather than using World Coordinates

I kept running into an issue while attempting to apply textures to my objects in three.js. Whenever I tried to texture an extruded geometry the texture just didn't show up. After giving up for a while then coming back and digging some more I found…
zaidi92
  • 355
  • 1
  • 3
  • 11
3
votes
0 answers

Applying textures correctly to extruded elliptical objects in three.js

For a while now I've been having difficulty correctly applying textures to three.js custom objects. Specifically extruded elliptical objects. I have looked around and from what I can see I need to generate the objects UV mapping by using it's…
zaidi92
  • 355
  • 1
  • 3
  • 11
3
votes
1 answer

Texture shape extrude in three.js

I'm trying to texture an extruded shape in Three.js. In the following code I create a curved shape, extrude the shape, then create a mesh with the geometry and a material I've loaded from a Jpg file. The wireframe displays but the texture does not.…
Preyes
  • 155
  • 5
3
votes
1 answer

Texture mapping on extrude geometry ThreeJS

I'm creating random shapes with extrude geometry on ThreeJS, now I want to apply textures on it but the result is ugly. I can't figure out how to generate UVMapping in order to display the texture correctly. I fiddled my…
user2026247
  • 149
  • 2
  • 8
3
votes
0 answers

Un correct UV texture mapping on a simple cube

The goal of my program is to display a simple cube UV mapped exported from Blender. But the texture mapping in my openGL program is not correct. I want to precise that the display of my UV mapped cube is perfect on Blender. My texture is composed of…
user1364743
  • 5,283
  • 6
  • 51
  • 90
3
votes
1 answer

OpenGL ES texture mapping

I need to draw circles in my Android application. Actually it is a Pacman game and I need to draw tablets. Since there are many tablets on field I decided to draw each tablet with a single polygon. Here is the illustration of my…
Anton Boritskiy
  • 1,539
  • 3
  • 21
  • 37
2
votes
1 answer

How to correctly find UV on sphere

I have a sphere and a texture for it. Texture consist of 16 tiles of zoom = 2 from OSM. Tile size is 256x256. At top and bottom I added space to cover area in ranges [90, 85.0511] and [-85.0511, -90], proportionally. So texture size was…
2
votes
1 answer

How to, given UV on a triangle, find XYZ?

I have a triangle, each point of which is defined by a position (X,Y,Z) and a UV coordinate (U,V): struct Vertex { Vector mPos; Point mUV; inline Vector& ToVector() {return mPos;} inline Vector& ToUV() {return mUV;} }; With this…
KiraHoneybee
  • 495
  • 3
  • 12
2
votes
1 answer

Is there a way to show uv from meshview to flat drawing in javafx?

is there a way to show uv coords on gui like blender blender uv ?
Giovanni Contreras
  • 2,345
  • 1
  • 13
  • 22
2
votes
1 answer

Is there a way to merge textures in Unity in a shader?

I'm trying to animate a 2D game object using several overlaid layers of images in one mesh renderer. I've got several layers of different textures, each is an image with a transparent background. I've found a way to programmatically create a…
Mir
  • 305
  • 8
  • 24
2
votes
1 answer

THREE.JS UV map over entire THREE.BufferGeometry

Here is a very simple Three.JS sketch, resulting following render: As you may see this THREE.BufferGeometry is a 8x8 matrix and by setting UVs in this way: for(var i = 0; i < points.length; i += 4){ quad_uvs.push(...[0.0, 0.0, 1.0, 0.0, 1.0, 1.0,…
VVK
  • 435
  • 2
  • 27
2
votes
1 answer

weird artifact appear while baking lightmap in unity

I have been baking lightmaps in unity for a model and every time I bake light map weird noise appear in the baked object. I have tried generating UV's in unity and also created lightmap UV's and try to use it but still the issue remains. these are…
2
votes
2 answers

Is there a way to obtain IUV map from image in tensorflow?

I have been using detectron2/densepose to generate IUV map which helped me generate UV texture from the input image. Now, for deployment, I need to have IUV map generation from input image in client-side using JavaScript. I am familiar with…
Rupesh
  • 530
  • 2
  • 14
2
votes
0 answers

three.js: Calculate a proper uv texture mapping for a custom geometry in three.js

I have a few doubts: How can I add an image texture to all the faces of a cube as a whole in three.js? I want a certain part of the image to present in a certain part (1) of the face rather than the complete image in separate faces (2). I was…
2
votes
0 answers

OpenGL C# UV mapping / UV Coordinates issue when loading OBJ File

I need some C# OpenGL help. Im still kinda new to OpenGL and making a little render engine! The rendering works fine but today I added an OBJ File loader, which also worked fine but the UV is messed up. I used a File Parser made by chrisjansson on…
RedCube
  • 25
  • 4