Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [uv-mapping]

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.

1
vote
0answers
22 views

How do I wrap my custom texture to a quad using DX11 and C++?

I have manually cut out some textures from a sprite sheet and saved them as individual files for now, and I am trying to load in this png and apply it to the quad I have drawn on the screen, but for ...
0
votes
0answers
17 views

Efficient unwrapping on multi hard edge object

I'm having trouble unwrapping this without creating hundreds of seams which massively increases the vertex count in the game engine (Unity). I've tried the various projection methods without much ...
0
votes
1answer
56 views

Tools or techniques for UV unwrapping/texturing terrain with features such as roads?

I'm trying to create a map similar to Outset island in Loz: Wind Waker. Here is an example of what I'm trying to create: As you can see, the roads more or less have dedicated tris. However, when I ...
0
votes
0answers
34 views

Unity3D Mapping uv coords from quads with unique vertices directly to texture map

this is my first post in this stack exchange! I was wondering how I would go about mapping the texture of my tiles for my tilemap directly to the texture atlas. I generate the mesh with unique ...
1
vote
3answers
58 views

What is “mapping seams” and “hard edges (doubled-up vertices)” in UV?

According to GPU: Optimizing model geometry: Try to keep the number of UV mapping seams and hard edges (doubled-up vertices) as low as possible What is "mapping seams" and "hard edges (doubled-up ...
0
votes
0answers
67 views

How can I retexture hexagonal tile on a sphere during run-time?

What's the best way to shift UV coordinates on a spherical mesh such that I can change the colour of a single hexagon? I already know how to select the vertices of the mesh and know how to change ...
0
votes
1answer
63 views

Normalmap texture in Unity from SP disorted a lot

As title said, normalmap made from Substance Painter in Unity disorted. Here is the picture: I made red rectangles to see more cleary. You can see that the some of line of normal were disorted ...
0
votes
1answer
79 views

Exporting a simple mesh from Blender for reading in Assimp

I'm trying to create some simple assets for using in my rendering engine. What I'm trying to do is to generate simple low poly models and then importing them into my application using Assimp. I can ...
0
votes
1answer
2k views

How to use uv mapping in Unity 2017

I want to create a game with a Minecraft style world. Now I need uv mapping for some cubes in my game. But I could not find any good tutorial in the internet. I want to use the following texture with ...
0
votes
1answer
86 views

Cube changes position when I use a script to change its UV mapping

I try to code a Minecraft like game with Unity 2017.3. I found a C# script for creating a UV mapped cube with the following layout, using my own texture with 64x64 pixel sides: If I run the game my ...
3
votes
1answer
446 views

Procedural planet to sphere texture

I'm making a 4x space game. I have a procedurally generated galaxy with planets in 3D space. The view is above the planet plane at -45 dec y-up i.e 45 deg isometric. I procedurally generate the planet ...
1
vote
0answers
278 views

Computing the UV coordinates of a 3D point that lies within a 3D triangle

From a triangular mesh I have a 3D triangle T represented by 3D vertexes v0, v1 and v2. Each vertex has an associated UV coordinate into a common texture image, represented as uv0, uv1, uv2. ...
2
votes
1answer
208 views

Unity: Texture huge areas with decals

I'm using 1024 textures for smaller buildings and 2048 for larger one's. Basic workflow: 1) Unwrap in Blender 2) Smack a concrete texture on it 3) paint some dirt here and there. Result: This ...
0
votes
1answer
70 views

How to texture a floor so that edges have slightly different texture than the rest of the floor

When trying to create somewhat realistic environments, I often find that the edges where floor/wall/ceiling meet will have slightly different texture compared to the rest of the floor/wall/ceiling. ...
0
votes
0answers
96 views

why sphere material behave differently in the inspector and the game scene

I have wrapped a ball(sphere) with a texture, and it looks well in the inspector of the material But it not looked as well in the game scene(texture was like stretched): How to make this corrected? ...
0
votes
1answer
180 views

How to deal with texture coordinates without range?

I have a set of given texture coordinates(u,v coordinates), but they are ranging from (-inf, inf), contradicting the [0,1] convention. I tried to do a rescaling by ...
7
votes
1answer
478 views

How can I fix zig-zagging UV mapping artifacts on a generated mesh that tapers?

I am creating a procedural mesh based on a curve and the size of the mesh gets smaller throughout the curve as you see below. And the problem is UV gets zig-zagged as the size changes (it works ...
0
votes
0answers
25 views

Understanding of GL_CLAMP_TO_*

As I see almost everywhere says that texture space is [0,1]. Does that mean GL_CLAMP_TO_EDGE will clamp the uv values to [0,1]? I read from OpenGL doc online here glTexParameter* and it says: ...
2
votes
2answers
153 views

Allow a Player to Navigate the 2D surface of a 3D mesh

Edit: Currently, I am looking for a method which will allow a player to control a 2D mesh and navigate along the surface of a 3D mesh. Visually, this would look like the player is inhabiting a 2D ...
2
votes
1answer
298 views

Applying a face image to a mesh head

I'm playing around with 3D graphics programming and it's only a few weeks I'm into OpenGL and able to render meshes with textures with few basic transformations. I've a hobby project where I want to ...
1
vote
0answers
303 views

Generating texture coordinates autmatically with Cube Mapping for an object that is not a skybox in OpenGL

I am wondering whether its possible to automatically generate texture coordinates for custom obj models to work with cubemaps. Every tutorial I see online is about environment mapping. Is it possible ...
2
votes
1answer
218 views

How can I use Blender-style UVs (and not per-vertex) in OpenGL?

In Blender, UVs are stored "per face vertex", meaning that if you have a plane made of 2 triangles, you will have 2 faces, 4 vertices but 6 UV coordinates. I made a basic export script, and exported ...
2
votes
0answers
162 views

How to map trapezoid image to rectangle cubemap face?

I am writing a 360 video application on oculus mobile SDK. My video frame has a trapezoid region and I need to map it into a rectangle region. In the above figure, trapezoid ...
3
votes
2answers
3k views

Generating a UV map for a procedural mesh

I have created a procedural low poly rock mesh and now I would like to apply textures on it. I have the 3D-coordinates of every vertex of the mesh but that's about it. How would I automatically ...
0
votes
2answers
138 views

Wrong UV calculation

For a personal project, I'm trying to implement a tilemap. My goal is to obtain this But all I got is this I am calculating the UV coordinates inside my shader, with this formula. 8 and 13 is the ...
0
votes
1answer
2k views

UV World mapping in shader with Unity.

Please refer to this Answer. DMGregory script is working for me, although I have a problem I can't fix because I don't talk shader :) The tiling will be applied correctly on geometry aligned on XY ...
0
votes
1answer
250 views

Sphere UV mapping. Texture Streched

I am trying to write a sphere mesh algorithm. Unfortunately, is the texture stretched vertically at the very end of the image. This should be near U 0.99~. Below is the code used for the sphere ...
1
vote
0answers
161 views

Map individual images to the surface of a sphere

I know this is a FAQ but I don't know the terms to search on. I even saw something like this with a blue globe, but now I can't find it any more! I'm trying to make a UV map to apply to a sphere (in ...
0
votes
1answer
626 views

Converting back and forth between spherical and cartesian coordinates in glsl

I have checked all the possible resources and I still don't know why my code is not working. This code should convert uv (texture coordinates) or cartesian into spherical and back. But my code still ...
1
vote
1answer
644 views

Multiple Texture Coordinates Per Vertex (DirectX11)

The models my artists are making in maya have multiple different texture coordinates per vertex depending on what face the vertex happens to be a part of. Originally, to fix this problem, I ...
0
votes
1answer
57 views

Blender->Unity materials problem

I have a pproblem with materials and their texture. I have a model with 1 material called 'Car_Jack', after i put my .blend file into unity, unity adds 'Car_Jack__Car_Jack_UV', which is white material ...
2
votes
2answers
725 views

Is it OK to use 6-7k texture map in Unity?

I want to unwrap all my car into one texture (interier, wheels and e.t.c), so for better quality i need to use one big 7k texture. Is it OK or the better choice is to make smaller ones for groups ?
1
vote
1answer
1k views

UV mapping in blender for use with Unreal Engine material

I have a room that I want to import in Unreal Engine 4. When I do it, I apply a material to the walls (for example), and the walls look like this: My question is, how can I map the object to the ...
0
votes
1answer
414 views

Planar mapping/projecting UV coordinates from normal

I've got set of vertices, and would like to calculate their UV coordinates by projecting them by a given normal. Similar to what "planar mapping" does in 3ds max. Another way of looking at it is ...
1
vote
1answer
112 views

Why is my texture skewed?

I'm creating hexagonal prisms from code and am having a difficult time understanding how UV mapping works, as the texture I apply to the hexagonal face comes out skewed: Forgetting the sides for now, ...
5
votes
2answers
250 views

Texture coordinates do not map correctly in Direct3D11 game engine

I beg your pardon if this question has been already answered elsewhere or if this is the wrong site, but I have a serious issue with rendering textures with Direct3D 11. Using Cinema 4D R17, I ...
1
vote
0answers
27 views

UV Packing Roadblock

I noticed that when I was unwrapping and packing UV's in 3DS Max, that about 75% of the map was taken up by a bunch of repetitive small parts, because of their unique shape and inability to fit ...
2
votes
1answer
4k views

How to make texture size correctly in THREE.js?

I'm new to THREE.js and I have a frustrating problem. I can't get my grass texture to size "normally" on the terrain. I get it, the terrain is steep, but that doesn't mean the grass should be ...
0
votes
1answer
224 views

Applying texture inside of an Icosphere?

I have implemented a code to generate an Icosphere procedurally in Unity 5.3.4f, which works pretty well. However, what I need to do know it tweak the code to make the sphere to receive texture only ...
7
votes
1answer
811 views

Perspective-Correct Texture Mapping

I am working on a small rendering engine for a personal project and I am having issues with the texture mapping part of it. It seems to work for some cases, but not for others. For example, when one ...
0
votes
2answers
227 views

reuse texture between quad objects

This question is specific to unity: I want to spawn multiple blocks, each representing a letter. There will be more than one copy of an alphabet. I have a big texture which contains all the letters ...
2
votes
1answer
856 views

Multiple UV coordinates in Unreal Engine Procedural Mesh Component?

How can I have multiple UV coordinates per vertex in a Procedural Mesh Component? My goal is to create a UV editor. I know it is possible to generate multiple vertices per corner, as in ...
0
votes
1answer
89 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: ...
0
votes
1answer
100 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 ...
3
votes
5answers
2k 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 as ...
2
votes
1answer
9k 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 parameter ...
0
votes
1answer
609 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
40 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
726 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
1k 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 x,...