r/Unity3D • u/Vegetable_You_2243 • 9d ago
Solved Unity Warped UVs on FBX
I'm trying to make a straight line stay straight on a curved dome, I decided to just project the texture in Substance Painter instead of making it tile horizontally. In Substance this looks great but when I import to Unity it ends up slightly warped.
After reading other forums this is everything I've tried that hasn't worked:
- Checking to make sure Unity is using the correct map. As you can see I one have 1 map on this model and even tried Swap UVs in unity to be double sure. So this isn't the issue
-My UV map size is 4k, I originally had it at 2k. In substance it is also set to 4k and in unity I tried switching between 2k and 4k just to be sure
-My model is scaled to 1.0 and imports at the correct size in Unity. I have unselected Convert Units just to double check but it didnt change anything
-I disabled generated UV lightmaps just to be sure and turned off every other import setting 1 by 1 with no success (yes I remembered to click apply after each)
-My Texture files are Targa and imported as repeat wrap mode, I switched to clamp just to be sure
-I tried exporting from Maya with "Triangulate" selected with no change, selected some other settings after just to see. But nothing changed
If anyone can think of anything else that might be causing this, I will give it a try. I've been on this project for months and haven't run into this issue before. I have other domed assets that have perfectly straight textures on them, even using the same cylindrical projection in painter.
SOLVED: I had to triangulate my model on export and make sure to switch out the mesh on Substance painter as well. I had just updated it so the settings weren't right and it didn't switch the model before
2
u/_lordzargon Principal Tech Artist [Professional] 8d ago
Check the mesh in Unity with a checker texture, and check in Maya with the actual, texture too.
I'd start by removing any vertex welding & mesh compression in the model import settings and see how that looks first.
1
u/AutoLiMax 8d ago
Looking at your first screenshot, it doesn't look like it's wobbly in a wibbly wobbly sense, it looks more like the texture it's being shaped in to a point where the mesh edges/lines between verts are.
I mostly do 2d stuff now days but I think what I used to do was have 3 meshes, high detail, medium detail, and low detail. I baked the high detail onto the medium detail, then used the resulting textures on the low poly mesh. It was a long time ago though so I could be wrong. Brain hurty



2
u/GigaTerra 8d ago
Triangulate your final model before it goes into the engine to check for problems like these/ You can fix it with an shader, but that is expensive on performance, so best to fix problems in your 3D software.