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

Only one uv coordinates per vertex?

A cube has 8 different vertexes. Mapping the faces to the texture is a problem because the 2d-texture has 14 different xy coordinates. I like to know: Is it common that one vertex has only one uv coordinate pair?
Grim
  • 1,938
  • 10
  • 56
  • 123
1
vote
1 answer

What is this mipmap artifact?

There was a weird white line at the edge of my sphere UV when I import texture with mipmap It disappear when I disable mipmap What is this? This is the texture I used
Thaina Yu
  • 1,372
  • 2
  • 16
  • 27
1
vote
1 answer

ThreeJS Texture fit UV Map

I'm tring to developing a configurator. It's about cups. These should be displayed in 3D. A design should be uploaded. It works by uploading a texture like this. Otherwise the design will not fit. Is there a way to load a full-size rectangular…
1
vote
1 answer

UV mapping a procedural cylinder in Unity

I have a method that creates a cylinder based on variables that contain the height, radius and number of sides. The mesh generates fine with any number of sides, however I am really struggling with understanding how this should be UV mapped. Each…
Alx
  • 651
  • 1
  • 9
  • 26
1
vote
1 answer

2D-Image texturing in OpenGl does not work as expected

I have a homework on Textures and I try to load a picture on my cube. Despite that, when I compile I only see my cube colored grey, but I dont understand why. This is my Java code,from where the cube coordinates and the uv coordinates are passed to…
ffblord
  • 403
  • 3
  • 7
  • 14
1
vote
1 answer

Three.js - Vertex Shader UV variable return only 0,0

I loaded an object with OBJLoader. I want to use a Shader Material with a texture. I pass my texture to the uniforms parameters of the material. I pass the UV variable from the vertex shader to the fragment shader. But when I use the uv coordinate…
nbl7
  • 511
  • 4
  • 14
1
vote
0 answers

Texture cracks on model view

I'm trying to display a simple 3D model using three.js instead of the already implemented view I've made in Unity3D. The model is a fbx file and the texture is a 4096x4096 pixel jpg file. Following the examples and the documentation I created the…
h3lios
  • 104
  • 7
1
vote
1 answer

Three.js: Set UV of BoxGeometry

I'm wondering if its possible to change the UV map of the Box Geometry to unfolded, like that: https://upload.wikimedia.org/wikipedia/commons/thumb/e/ea/Cube_map.svg/599px-Cube_map.svg.png By default the projection is the same on all faces, which is…
tinytree
  • 1,009
  • 2
  • 12
  • 28
1
vote
1 answer

openGL 2D Parallax Scrolling Texture Tears / Seams

I am implementing 2d parallax scrolling in openGL using a single quad and a texture atlas. I use the following (offset is 1.0 / number of layers, so 0.2): It works almost perfectly, but at certain offsets seams at the loop points are visible. (See…
synchronizer
  • 1,955
  • 1
  • 14
  • 37
1
vote
1 answer

Unwrapping a polygon from 3d to 2d space (using triangles) for texture coordinates

So I have created a model in Ogre3D and this model is made up of a number of triangles of arbitrary rotation and position. I would like to "unwrap" the model like many modelling programs do so that all of the triangles are mapped to 2d (x,y) but the…
Pete L
  • 61
  • 1
  • 3
1
vote
2 answers

How to compute/deduce new vertex UVs from adjacent vertices UVs

I have a 3D model which already has every buffer I can dream : positions, normals, uvs, etc. I would like to modify its geometry (moving an existing vertex or creating a new one) to, for instance, chamfer my edges. I can easily compute the new…
MrBooks
  • 85
  • 10
1
vote
0 answers

How do I detect the vertices on the seam of a procedurally generated icosphere?

I've done a fair bit of research and I just can't really seem to find anything that can help. Basically, I'm trying to obtain the correct UV coordinates on on icosphere so I can apply my texture correctly. I can see two ways of doing this- by…
DCON
  • 628
  • 5
  • 18
1
vote
0 answers

Automatic Uv-mapping for Terrain

I am developing a framework to create terrains for games. The problem I am facing is how to uv-map the mesh so the textures are not stretched in steep locations. Right now uvs are in [0-1] range and the vertex uv is calculated based on vertex…
morteza khosravi
  • 1,599
  • 1
  • 20
  • 36
1
vote
0 answers

Maya UV per local polygon triangle

I was wondering if anyone has good way in Maya C++ Api to find a UV coordinate per local-relative triangle for polygon. Seems easy to find the per poly face UVs but how can I map them back to the poly triangles ? Thanks
1
vote
0 answers

Get pixel-count in FoV inside VR-Sphere

Recently i made a application for HTC Vive users to view 360 degree videos. To have a point of reference, lets assume that this video had a resolution of FullHD (1920x1080). See the picture of a 3D model below for illustration: The field of view of…