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
18 views

Making texture atlas in Unity

For optimization purposes and reducing batches count, I am trying to combine my floor tiles textures into different atlases. Sharing the same material with an atlas can decrease draw calls and hence ...
0
votes
1answer
20 views

Texture "Mapping" (Using just part of a texture sheet on a object face)? Unreal Engine

I've created a Playing_Card class which is of course for card games such as Blackjack. The class works fine, except until now I have not used graphics. I have now ...
0
votes
1answer
40 views

UVs Distored When Importing Mesh?

The first image shown below is of part of my mesh in Blender, and the second is of that same part of the mesh in UE4. For whatever reason, the UVs are distorted and glitchy once imported into UE4. I'...
0
votes
1answer
24 views

How to map texture pixels to the corresponding 3D positions?

I have a mesh stored in .obj format with a texture image in .png format. For any "defined" pixel in the texture image, I'd like to compute the corresponding 3D coordinates when the texture ...
0
votes
0answers
17 views

Unity - Clamping UV position using vertices

I'm creating a mesh in runtime (the green block in pics), and want to set the UVs correctly. I'm trying to get the material to fit exactly to each face, but having issues. What I want is this: What I'...
0
votes
0answers
19 views

OpenGL sampling a multidimensional texture

Preface: In my AI project I'd like to do UV mapping of my mesh with a neural texture consisting of 16 channels with 512x512 values of type float16. The result will be a neural frame consisting of 16 ...
0
votes
1answer
28 views
0
votes
0answers
21 views

Lightmap not working?

So I've been exporting and re-exporting my mesh from Blender and importing it into UE4 over and over again. For some reason, even after I've generated the light map in Blender, renamed both UV maps, ...
1
vote
1answer
71 views

Find projecting triangle for UV mapping in RuneScape model format

I am using an old Runescape model format, also used by Thief and Quake. In this format, instead of specifying UV coordinates for each vertex ABC, we specify a second trio of vertices PMN. Those ...
0
votes
1answer
113 views

HLSL Converting View Direction into Equiangular UVs

In Unity, I am attempting to create a custom skybox that use a single render texture to create a flat unmoving skybox (the render texture source will do it's own movement) and reflect off objects as ...
0
votes
2answers
180 views

Best Practices for Texturing Large Objects

Kind of a 3D graphics newbie here. This is the biggest prop I've ever tried to texture, and I'm kind of stumped. How do you get a decent resolution on large meshes like this without exporting ...
0
votes
1answer
50 views

Textures not working on glTF Embedded Models. Picture Explains The Issue. (GODOT ENGINE)

I wanted the tree to look a bit more stylized, or have a bit more to it than just flat planes. Yet when I tried to put this texture on it, it just looks completely wrong. Is this a model issue or a ...
1
vote
1answer
29 views

How to handle normal vector when duplicating vertex?

I'm currently developing a UV mapping, such as the UVW Map Modifier in 3ds Max (Not Unwrap UVW Modifier). I split the vertices of the model in the form of a primitive shape (Box, Plane, etc.) and set ...
2
votes
2answers
211 views

Finding the position of a point inside a triangle, based on the position of a point in another triangle (barycentric coordinates in Godot)

I'm trying to translate a UV coordinate into a world coordinate. (this is not in a shader, it's in GDScript in Godot, to bake out a texture based on some raycasts). So I find out which triangle in the ...
0
votes
1answer
155 views

Half of my tris are textured in streaks and blurs

I have written code to import meshes from OBJs and textures from BMPs. My texture coordinates seem to be getting messed up somehow, or some other issue is occuring, because I am getting these effects ...
0
votes
1answer
32 views

How can I sample objects color based on position and apply to an object in a shader?

I think what I want to achieve is similar to how grass can get the terrain color so it looks more blended, though this is not what I will be doing. My texture is a palette of colors: I have created a ...
0
votes
1answer
198 views

Reversing plane projection texture mapping algorithm

I found this algorithm in some old codebase, it takes two triangles from a mesh ABC and PMN, where ABC is the triangle that will be rendered and PMN is an extra triangle that is only used to generate ...
0
votes
1answer
2k views

Texture with Transparent background has black background in Unity

please see the below image. I made a model in Blender that has eye meshes with UV mapped Pupils. But trying to import all this into Unity is causing tons of weird visual errors... The pupil png has a ...
0
votes
0answers
36 views

Per-object screen space uv issue

I am currently trying to sample a texture in screen space. This works well : ...
0
votes
0answers
62 views

How do I colour a mesh in Kiss3d?

This is a question about the sebcrozet/kiss3d graphics engine for the Rust programming language. I have managed to create a mesh using group.add_mesh(). Now I want ...
0
votes
1answer
33 views

How Can I Separate a Mesh Into Two Separate Objects Without Corrupting UV Data?

I'm working in Blender and Unity. I downloaded my character from DeviantArt here, used Blender along with this addon to import the character's .mmd file to Blender, and saved her as a .blend file in ...
0
votes
1answer
74 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
1answer
347 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
255 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
463 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
687 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
118 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
264 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
32 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
22 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
40 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
198 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
232 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 "...
1
vote
1answer
3k 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
1k 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....
3
votes
1answer
2k 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
344 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 ...
2
votes
1answer
206 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
39 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
405 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
473 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
30 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
365 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
261 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
1k 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
139 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
795 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
9k 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
328 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
891 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 ...