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

How can I specify multiple UV coordinates for same vertexes with VAOs/VBOs?

I am in a situation where I would like to use VAO/VBO to recycle the same vertexes and use indexes to speed up rendering. All is fine, apart my textured models use UV coordinates and for the very same vertexes (approx >80%) I may end up having…
Emanuele
  • 1,408
  • 1
  • 15
  • 39
2
votes
1 answer

Adding a UV-map material in Unity 5 not working

I am currently using Unity 5 to setup a small game so that I can see the assets I recently made in blender in action. I have created a uv-map in blender and added the necessary colour (it works and displays nicely and blender) but it doesn't seem to…
Amposter
  • 787
  • 2
  • 8
  • 27
2
votes
2 answers

How to draw and texture a UV Sphere with OpenGL 2.0 for Android

I am creating a virtual reality app for android and I would like to generate a Sphere in openGL for my purposes. In a first step, I found this thread(Draw Sphere - order of vertices) where in the first answer there is a good tutorial of how to…
Jorge S
  • 81
  • 1
  • 9
2
votes
1 answer

Spherical mapping calculation (UV) for point given on sphere - strange U values

I want to write an spherical mapping for my ray-tracer to generate UV-coordinates for the sphere. The texture applied with that mapping should looks like that: I have the sphere that is located at [0.0f,0.0f,0.0f] with the radius of 20.0f. For…
PolGraphic
  • 3,233
  • 11
  • 51
  • 108
2
votes
1 answer

D3D11/C++ Inaccuracies in uv interpolation in pixel shader. How to avoid?

I'm trying to draw a quad with a texture onto the screen such that texels and pixels perfectly align. Sounds pretty easy. I draw 2 triangles (as TRIANGLE_LIST, so 6 vertices) using these shaders: struct VSOutput { float4 position :…
XorTdsc
  • 21
  • 1
2
votes
3 answers

DirectX/C++: Texture Coordinates not "correct" in-engine correctly after Obj export

If I draw a single plane, the texture coordinates are mapped correctly. (4 Verts, 4 TC, 6 Indices(2 polys)) Even if it's subdivided, (9 Verts, 9 TC, 27 Indices(8 polys)) the texture will display: (Maya complex plane) I can take my [written] Obj…
2
votes
1 answer

Finding isocurve from triangulation with known uv at all vertices

I have a 3D triangulated mesh which is similar to a curved piece of paper in that it has a 4 edges and lives in 3-dimensional space. Edges may be different lengths and curve differently, but it could theoretically be continually morphed to look like…
PeteUK
  • 1,062
  • 12
  • 26
2
votes
1 answer

Three.js - changing collada texture works, but not with canvas

I am digging into Three.js and am experimenting with vrml, and now with collada files. Importing a collada file works. It works with webGL AND canvas as a fallback : my 3D model rotates, shows the model… and in webGL i can even have that wonderful…
dokMixer
  • 31
  • 6
2
votes
1 answer

Mapping UV to a bulged triangle strip

I don't know if "bulged" is the correct term for it but it's all I can think of right now. I'm trying to map a 1-pixel wide (though technically every texture would have this problem) image along a triangle strip to simulate a laser. When it's…
Jewel
  • 124
  • 3
  • 12
2
votes
1 answer

How can I create a UV map of my arm?

I want to design a custom sleeve tattoo based on the actual dimensions of my arm. Any suggestions on the best way to go about this? I am a bit of a 3D noob but my idea was to scan my arm with a kinect, create a mesh, and create a UV map from the…
Justin
  • 300
  • 3
  • 11
2
votes
1 answer

Buggy UV coordinates of sphere in OpenGL?

I am having buggy texture map on my sphere. The issue is well known but solution is rare. This is my code for generating UVs for a sphere. T = triangles, Nv = vertex normals. for (int i=0; i
maxpayne
  • 1,111
  • 2
  • 21
  • 41
1
vote
0 answers

How can I turn a UV corrdinate this texture into a single U coordinate?

First off, this is what I'm trying to do: The blue lines are the texture boundaries, the red line is a "slice" I am putting across the polygon (the slice can be variable). What I'm trying to do is make a cut across the top of my polygon, and making…
KiraHoneybee
  • 495
  • 3
  • 12
1
vote
1 answer

HTML canvas draw inside UV islands

I am trying to create a texture on fly with many randomised circles and apply it on bowtie object in three js I am trying to achive it with HTML canvas because I think it will give me more control over the pattern rather than glsl shaders. I am…
Eugene
  • 57
  • 1
  • 7
1
vote
1 answer

How to transfer colors from one UV unfolding to another UV unfolding programmatically?

As seen from the figure, assuming a model has two UV unfolding ways, i.e., UV-1 and UV-1. Then I ask an artist to paint the model based on UV-1 and get the texture map 1. How can I transfer colors from UV-1 to UV-2 programmatically (e.g., python)?…
XiaoJin
  • 67
  • 1
  • 6
1
vote
1 answer

How to export UV map in SVG format in Blender but only outlines

I have this UV map from my 3d object. Now I want to export it to SVG format but I just need outlines/borders as SVG not all polylines. Is it possible in Blender to export as SVG just outlines/borders or I need to do some manual work on Adobe…
Aleks Per
  • 1,549
  • 7
  • 33
  • 68