The 3D modelling process of making a 2D image representation of a 3D model, although it is typically used to refer to mapping textures to 3D objects. It is especially used in games as it is an efficient and compact way of texturing objects.

learn more… | top users | synonyms

0
votes
1answer
16 views

How to adapt UV code to use a tilesheet that is “uneven”?

The tutorial has code that takes a tilesheet and builds a UV mapping: const float tileSize = 0.25f; public virtual Vector2[] FaceUVs(Direction direction) { Vector2[] UVs = new Vector2[4]; ...
0
votes
1answer
62 views

How does UV mapping work for the spaces between vertices?

In UV mapping each vertex has a UV coordinate, but wouldn't that just make 1 pixel for every vertex? How do you find out the texture coordinate for the spaces in between the vertices? Am I not ...
1
vote
1answer
61 views

Seams between tiled textured cubes

I've created a textured cube in Blender, which I have uv-mapped like this: The tiles are 256x256, and I've mapped the coordinates exactly at the edges (e.g. x: 256, y: 512). I then export my model ...
1
vote
1answer
52 views

How to get UV coordinates for sphere (Cylindrical Projection)

I have created one sphere and I want to map onto it a texture map. But I want first to project my map texture to cylinder and then to sphere. So I want to create a function which takes as ...
0
votes
1answer
59 views

How to map square texture to triangle?

I want to find the texture coordinates for point P. I have the vertices of the triangle and their corresponding uv coordinates. The numbers in the little squares in the texture represent color ...
1
vote
1answer
23 views

Is it necessary to use texture filtering if I use texture coordinate system?

I have one question about using texture filtering. It's clear when I used normalized texuture coordinates (in any API) for example from (0,0) to (1,1) it is necessary to use texture filtering because ...
2
votes
1answer
120 views

Texture tearing with UV texture atlas mapping

The following code maps the texture from a texture atlas to a UV. The problem is I'm having texture tearing issues. Does anyone know how to overcome this problem and have any suggestions? Here is the ...
2
votes
1answer
77 views

How to convert UV position to texture atlas pos and reapply to UV in Unity

I'm trying to apply a texture from an atlas to a mesh by reiterating through the UV array on that mesh, but I'm a bit lost on converting the coordinates. For example, if the texture required is at ...
1
vote
0answers
24 views

Add UVs back into a model

I built a 3D model in Autodesk 123d design, then exported it as an stl. When I convert it into an obj, however, there were no UVs in it. Is there a way I can add the UVs back into the model using a ...
1
vote
1answer
60 views

Texture not working on object

I have a project that I'm having a bit of trouble with. Let me try and explain. In short, I'm trying to apply a texture to an object, but instead it is a solid color. I built a building in "Autodesk ...
4
votes
1answer
81 views

Water effect using DuDv Map weird look

I'm trying to apply a DuDv Map effect (distortions) on my water. My texture is 512x512 in size. I'm using the following code: (Vertex Shader) out vec2 texCoord0; void main()... { texCoord0 = ...
0
votes
1answer
17 views

LightMap not working properly

I've made a chips bag model for my game: http://imgur.com/JcumRF4 And I textured it like this: http://imgur.com/wpyeACZ and I googled on how to make lightmaps all of them say "Smart UV project" ...
2
votes
0answers
32 views

uv tiling and offset for uvs not min-max 0-1

For the purpose of the question, a unit = 1 meter. So, I have a triangle strip that is 4x8 meters (for argument's sake; it is procedurally generated by player). I also have a texture which is ...
0
votes
0answers
26 views

Texture not getting loaded in FBX , exported using FBX SDK

I'm working on an OpenGLES2 project (iOS) in which I have to export a scene/model in to FBX format, so that it can be opened using FBX review app. I have made up to the point where the model getting ...
3
votes
1answer
153 views

Curvilinear distortion for mapping texture on quad sphere

I'm using the formula I've found here to map procedural texture on to a quad sphere. For example I'm working with a 3d panoramic cube map that I've generated with a simplex noise. Each face of the ...
3
votes
1answer
427 views

Can Unity support / use textures that are not square?

I have been told by another highly skilled Unity artist that Unity cannot efficiently handle non square images. Since that doesn't sound right to me, I wanted to get a second or third confirmation to ...
0
votes
0answers
65 views

UV texture mapping with perspective correction works for 50%

So, I've been trying to get the UV texture mapping down with perspective correction. The triangle rasterization seems to work. The interpolation seems to work too. It's just the perspective ...
0
votes
0answers
36 views

Issue with texture mapping on a spehre using opgengl es 2.0

I have a problem to calculate the right UV coordinates. I'm calculating the sphere by subdivate a ocathdron. What did I do wrong? Calculate UV Points for the texture: private ...
0
votes
1answer
36 views

How can I modify the UV co-ordinates on a texture so they converge to a point?

I'm building a roof visualiser app, where someone can take a picture of their roof, define its outline, then visualise a new roof texture on it. I'm generating a 3D plane that matches the roof ...
1
vote
2answers
139 views

Optimization for lots of UV coordinates update for tilemap animation

In my game, I procedurally generate tile map mesh and modify it when travelling around the "world". Each tile is a quad. So they each, have their own UV points. (Obviously) I am using Unity for this, ...
1
vote
3answers
948 views

How to implement Index Buffer Object (IBOs) with texture coordinates in OpenGL?

I was using IBOs to render meshes (for example a cube) from wave-front files (.obj), without texture coordinates or normals, in OpenGL. Following this, I attempted to implemented texturing. The mesh ...
0
votes
0answers
52 views

Mesh tilemap and scrolling

I'm working on a top-down game where the player can move up, down, left, or right. I've come across tilemaps but since using Unity, I'm seeing the idea of using Meshes. I don't quite understand how ...
0
votes
1answer
51 views

XNA Texture mapping on model

I have a cube as my model and want to map a texture on every side of the cube. I have been searching for a while and most answers suggest using 3D max or using VertexPositionTextures. I am not ...
1
vote
0answers
418 views

How to fix artifacts when using equirectangular 360 panorama photo on sphere

I have a equirectangular 360 panorama photo. I tried to use it as a texture for a default Unity Sphere. The image had artifacts/visible seams, especially near the "poles" of the sphere (north pole and ...
1
vote
2answers
270 views

How do I wrap an image around a sphere?

Ideally I'd like a reference of the math involved, so I can start breaking down the problem. The simplest thing I can deduce about this problem is that the part of the sphere that the user is ...
0
votes
0answers
116 views

Why are my OpenGL textures warped?

I am writing a graphical program using OpenGL for rendering, Assimp for mesh loading and SDL for window etc, but also image loading. As can be seen in the image, the white outlines at the left of ...
0
votes
1answer
114 views

Get fragment from mouse position

I have a painting app for texture artists that I am working on. I am able to paint to a flat canvas that updates the texture of a 3d object in an object viewer. Now I want to be able to paint directly ...
2
votes
1answer
238 views

What is the performance impact of rendering a larger quad?

Lets say I have two planes and I textured them in blender with a 512*512 tiled texture. One plane is bigger than the other (for example, one plane tiles the texture 60 times but another only six ...
0
votes
1answer
461 views

Multi texture obj files? [closed]

Im downloading some free 3d models off the internet to test things in my game. When I download the package, it gives me a bunch of texture files and the obj model. What I dont understand is what I do ...
1
vote
1answer
301 views

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: ...
1
vote
1answer
266 views

3dsMax to Mudbox - Import Warning: UV not a complete set

I'm exporting my 3dsMax model to Mudbox. The import gives me a warning that the UV set is incomplete. First, what does this mean? That I haven't got all the UVs unwrapped? Web searches have brought ...
1
vote
1answer
160 views

How to to convert UV coordinates to texel coordinates and how to convert texel coordinates to “array coordinates”?

I am currently writing a UV texture mapper. But i don't know how to convert UV coordinates to texel coordinates. And i also have no idea how i should convert texel coordinates to "array ...
0
votes
1answer
206 views

Formula to measure uv-mapping distortion

Does anyone know a simple way of calculating (offline) the amount a texture is distorted when mapped to a triangle like the following? Vertex Position UV Coordinates A (Ax, Ay, Az) ...
0
votes
1answer
257 views

Unity, Cannot change a single Vector2 element of mesh.uv?

I have a simple procedurally generated mesh, with uvs that tile correctly for(int i=1; i<vertices; i++) { uv[i] = new Vector2(x,z); //pseudocode } mesh.uv = uv; This works fine. However if ...
0
votes
1answer
285 views

Given seams, how do I unfold a mesh?

If a user marks a seam on a mesh, how do 3D modelling programs (like Blender or Maya) unfold the mesh on to a 2D surface? I can only find papers trying to automate the seaming for you. Given ...
0
votes
1answer
80 views

UV map data structure

I've received a few instructions on what kind of usage UV maps allows, and currently try to understand how it works. However, I can't figure out what kind of data there is inside a UV map. Googling ...
0
votes
1answer
424 views

3D position of an arbitrary UV coordinate

I have a UV map for a 3D mesh that encodes "links" between pairs of UV coordinates. I have previously defined this links (or pairs), one to one. The links are enconded using the function rgb_color(u1, ...
1
vote
0answers
127 views

XNA HLSL UV Mapping

I was testing my hlsl lighting shader, I've copied it from a tutorial and it works perfectly, but all the meshes in the model needs to have texture coordinate, I guess this is because this part: ...
0
votes
1answer
154 views

Loading non-square textures, from a 256x256 spritesheet in lwjgl(JAVA)

so I'm doing lwjgl, so far I have the loading of 16x16 textures from a 256x256 spritesheet all working, using this code to get the location of the textures: public Vector2f[] calculateUVMapping(int ...
1
vote
1answer
507 views

Looking for a full featured C/C++ UV Mesh Unwrapper [closed]

My first question! Is there an open source C++/C piece of code easy to integrate to solve the UV Unwrapping of arbitrary meshes out there ? I would like to use it to build a light mapper or similar ...
0
votes
2answers
885 views

How does Texture Mapping work?

I read the answers from What exactly is UV and UVW Mapping? and How does UVW texture mapping work?, which are quite nice, but am still not 100% sure, if I understand correctly. Lets start with a 2D ...
1
vote
1answer
56 views

Is it okay for UVs to touch border?

As a matter of habit I always shrink UVs to just below the full texture space, even for single island things like sprites. Can I have my UVs touching the actual border or is this bad practice?
5
votes
2answers
684 views

How can I find the right UV coordinates for interpolating a bezier curve?

I'll let this picture do the talking. I'm trying to create a mesh from a bezier curve and then add a texture to it. The problem here is that the interpolation points along the curve do not increase ...
1
vote
1answer
359 views

Sphere Texture Mapping shows visible seams

As you can see from the above picture there is a visible seam in the texture mapping. The underlying mesh is a geosphere based on octahedron subdivisions. On that particular latitude, vertices have ...
0
votes
1answer
522 views

Could you explain this calculation of tiling and offset?

I don't understand why we add +colNumber when we calculate the offset = Vector2 ((uIndex+colNumber) * size.x, which gives us x=3 for the index 13, which is the square located at the coordinates x:1, ...
4
votes
1answer
483 views

How do I convert a horizontal, panoramic skymap texture into a “dome” version of itself?

How do I convert the following skymap image: into a "dome" version like the one below? I'm looking towards making use of Adobe Photoshop for the task at hand. However, I'm at a loss on what ...
0
votes
0answers
41 views

Bad interpolation with texture in mesh

My mesh looks fine on Blender, but when I export it to my rendering engine (Ogre) the colors seem interpolated, screenshot below. I am using filtering none in my material, so it shouldn't have any ...
2
votes
2answers
1k views

3D position to UV coordinates in fragment shader

I am interested in converting an arbitrary 3D position computed at run time in the fragment shader to its corresponding UV coordinates. Notice that the 3D position I am interested in is NOT a 3D ...
5
votes
1answer
341 views

UV interpolation is wrong with a wide FOV

How should I take FOV into account when interpolating UV coordinates? This picture shows the result today. Everything works fine with a narrow fov, but when I make it really wide, things deviate. The ...
1
vote
0answers
580 views

Unity : shader that uses mesh.uv to tile texture atlas and mesh.uv2 to tile light atlas

I'm using a texture atlas and a light atlas to tile a mesh. I have the texture atlas working fine. I can apply textures and create a sort of tile map on my coded mesh. At the moment I'm using the ...