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.

Filter by
Sorted by
Tagged with
0
votes
0answers
21 views

How should i do fully automated mesh UV UnWrapping i need it for procedural generated meshes?

I wish to generate UV coordinates for arbitrary mesh. Every triangle should get a surface area on UV plane that is in a relation to the his surface area in vertex space. Triangles that are close on ...
0
votes
1answer
40 views

UV mapping. Texture blurry and overlapping. Unity3d

In my voxel game, this is how I'm calculating UV coordinates for my cubes' faces: ...
0
votes
0answers
13 views

Using indices with UV texture coordinates [duplicate]

So I've been trying to make a simple 3d cube in OpenGL. Creating the vertices and indices was easy, but now I have to texture it. No matter how much I mess with the texture coordinates, some sides ...
0
votes
1answer
38 views

Downsides to automatic UV unwrapping

I have seen several software packages that offer auto UV unwrapping as an option. My question is why would you ever manually UV unwrap if there is an automated tool to do so? Are there any ...
1
vote
1answer
95 views

SIMD and Inverse Tangent

I'm calculating spherical UV coordinates in a loop, trying to get GCC to vectorize the code. Here's a compile-able example of what it looks like. ...
0
votes
0answers
55 views

UV unwrapping and texturing for a voxel terrain

As sugested by another kind user, I started using MagicaVoxel to create the scenery for my game (which is in the 2.5D style of Pokémon Gen 5 or Octopath Traveler). I managed to import the test object ...
1
vote
0answers
106 views

UE4 - UProceduralMeshComponent - texturing issues

I am having a lot of trouble texturing a procedural mesh in UE4. I am using perlin noise from Accidental Noise Library with PolyVox to generate randomized marching cube terrain. Accidental Noise ...
0
votes
1answer
45 views

texturing a race track - applying variations

I have created a simple race track in Blender using bezier curve, array and curve modifiers. A track is created from simple planes and the basic seamless asphalt texture looks quite good. As you can ...
0
votes
1answer
71 views

Unity: White outline around seams in my character, make it stop!

so once upon a time I made a really cool character for my game project and he looked great. Then at some unspecific point in time, my character's UV seams got these awful white outlines around them: ...
1
vote
0answers
27 views

Lightmapper artifacts

I really don't understand why this is creating these kinds of artifacts. I'm starting to think something is wrong with Unity. There are clearly no overlapping faces on the Model. There is enough of a ...
1
vote
0answers
19 views

Can I slightly rotate a 2D vector (UV Edge) to more closely reflect the corresponding 3d vector?

I'm trying to get the difference between the 3D angle of two connected edges and their corresponding angle in 2D (mesh to UV space). I would like to slightly rotate the angle in 2D to closer match ...
0
votes
1answer
29 views

Do UV coordinates need correction for moving object?

The image above is a static capture of a dynamic OpenGL project I created in which I wrapped a NASA albedo, i.e., sans clouds, image on an OpenGL generated sphere. In so doing, I also generated the ...
-1
votes
1answer
84 views

What are these three different texture types I found in Pokémon sun?

I am currently trying to extract the Pokémon models/textures/animations of the Pokémon Sun game so i can use them as placeholders in Godot. At the moment I have the model, the textures and the ...
2
votes
1answer
119 views

How to set the UVs of a procedurally generated road mesh?

I want to create a road through a c# script in Unity. I created a mesh like this. The "vertetices" first adds the left and then the right points. Then set the UV the same order and value as "...
0
votes
0answers
70 views

UV mapping a playing card in Maya for use in Unity (using a SpriteSheet of all the playing cards). One Material or Two?

I am wanting to make a pack of cards in Unity and Maya. I am familiar with UV unwrapping in Maya, but I never used sprite sheet for my models i unwrapped. (They all just fit onto one texture so far). ...
1
vote
1answer
398 views

Strange artifacts in Unity Lightmaps

I experienced this weird lightmapping bug in my game that causes some models to have glowing artifacts on their surface. These artifacts "move" around, when I edit the UVs of the model in Blender, so ...
0
votes
1answer
180 views

Finding texture coordinates for plane

I am creating a 3D ray tracer and want to add textured planes. My planes are stored using a position vector and a normal vector. I want to use a square texture and map it repetitively onto the plane....
2
votes
1answer
833 views

How to UV map a procedural cylinder mesh? (Unity)

I have a script that generates a procedural cylinder. Each side is a quad that consists of two triangles. The two triangles share vertexes, so, a side with two triangles is defined by 4 points. The ...
1
vote
1answer
135 views

HLSL equivilant to “Object” data from “Texture Coordinate” node in Blender

I mocked up a shader how I wanted it with the node editor in Blender. Now I'm trying to write it in HLSL. In Blender there is a node group called "Texture Coordinate". If I use the "uv" node from the ...
1
vote
1answer
108 views

unity - What's the color of empty UV?

Assume I have a model and I don't map the UV for this model and I just apply a texture for the model. I see that Unity will apply a single color to the model, something like this (I took the img from ...
0
votes
0answers
33 views

Texturing edges of a procedurally generated polygon

I'm generating a polygon from code to display unit ranges in my game. Here's how it looks so far: I would love to be able to now use my texture and only apply it to the edges of this polygon (imagine ...
0
votes
0answers
215 views

How to scale UV coordinates from a specific offset?

I'm currently attempting to copy a small texture onto a larger texture, but I want to have control over how large and at what UV position the smaller texture is copied over. I've made some progress ...
1
vote
0answers
158 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
27 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
234 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 ...
1
vote
0answers
183 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
391 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
1answer
121 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
419 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
7k 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
215 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
714 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 ...
2
votes
1answer
643 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
615 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
118 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
1answer
599 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 ...
10
votes
1answer
1k 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 ...
2
votes
2answers
176 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
711 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
424 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
436 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 ...
1
vote
0answers
237 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 ...
2
votes
2answers
6k 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
210 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 ...
1
vote
1answer
5k 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
465 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
217 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
1k 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
1k 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
60 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 ...