I was working on my scene today, when all of sudden, Layout UV tool just stopped working properly!
It does not layout UV's properly any more.
Here's and example:
Simple UV unwrap, all the shells are straightened and easily fit into 4k texture with texel density of 13.
Now, I open Layout UV tool, click Apply... and this is what happens:
What?! Why did it go over the edge instead of properly laying out the shells???
Here are my settings:
I haven't change anything, and it was working for hundreds of models perfectly.
However, for this it just makes some garbage!
Here's my manual layout with the same 6 pixel gap between shells. And I haven't scaled anything:
It all fits with plenty of space left!
What is going on?! Why does Layout UV tool went bonkers all of a sudden?
I'm very confused... Please help!
Replies
Here's another example of what Layout UVs does now:
It was set to 6 pixels gap between shells. And some of them have huge gap between them, and some are literally touching borders. :|
Why? What happened?!
Interesting.
Are the transforms frozen on those objects? Is the unfold3d plugin loaded?
Here's an entire mesh. Transforms are frozen, unflod 3d is loaded. And, as you can see, it does not lay out properly.
I tried to separate the mesh, and combine it, cleaning history, exporting it and importing as new. Deleting my entire maya config folder, rebooting my PC.
It simply does not work! What the hell is even going on...
P.S. And I know I can just fix the uvs manually in a minuite or so. But that doesn't solve the issue of maya losing its damn mind on me!
Have you tried to set the scale mode to uniform?
Yes, it just takes the same layout as it did before, but scales it down to fit into the grid:
However, scaling changes texel density. I only use scaling when making lightmaps.
Have you tried resetting the settings for the Layout tool? When in doubt, always try that first, to see if it fixes it. Then readjust the settings you know you need adjusted.
I've deleted the entire config folder for maya (after I backed it up, of course), which resets EVERYTHING. And it was still doing the same thing.
I have a feeling that maybe it's something with my mesh that causes maya to freak out... But I don't know what. It all looks clean, I don't see anything unusual.
I assume your mesh does not fit in with your texel density. Try a cube with similar size.
I chose texel density of 13 because it's equal to 300x300 cm tile with 4096 texture. And this prison bed is about 212x106 cm.
I guess I'll just have to layout it manually... I'm out of ideas why maya behaves like that.
Could you post this cube here as maya file please.
Cause if i create one here it does work.
Are your scene setting set to cm in the prefs?
The cube layout is fine, it's as it should be - 13 texel density, no scaling, fits with more than enough space left. My scene is set to centimeters with Z as vertical axis.
Could you test my bed mesh instead? It's already unwrapped properly. Try to use laout UV from unfold 3d plugin with scale mode and pre-scaling disabled (to preserve texel density).
If i fire your scene up it get this.
Looks like the rotation does fuck it up. Trun it off.
Yeah, that seems to be the case. Thanks!
Although it's still really weird. That's the first time I've encountered something like this. But I guess the reason why rotation fucks up auto-layout for this mesh will remain a mystery...
It'll be some hidden cancerous shit in the history of one of the nodes that was once involved in creating the mesh
Combine it with a cube/export to obj/sacrifice your firstborn and it should sort itself out