Possible Studiomdl issue involving UVs. Created 2 weeks ago2024-11-07 11:27:49 UTC by Foxer141 Foxer141

Created 2 weeks ago2024-11-07 11:27:49 UTC by Foxer141 Foxer141

Posted 2 weeks ago2024-11-07 11:27:49 UTC Post #349323
I'm working on getting some low-poly models into Sven and I've run into a UV Map issue with Studiomdl I believe. Whenever I compile the model with the Sven Studiomdl the UV maps end up getting squished, you can see in the Blender screenshot how it should look, and how it looks after compile in Sam's model viewer, this translates identically to the model in-game
Blender example zoomed close to the top right sectionBlender example zoomed close to the top right section
Sam's Model Viewer, you can see how the UV map is crunched down by 3 pixels on all sidesSam's Model Viewer, you can see how the UV map is crunched down by 3 pixels on all sides
In-game, translated 1:1 from how it's shown in the Model ViewerIn-game, translated 1:1 from how it's shown in the Model Viewer
To make sure it's not an issue with the Sven Studiomdl I also tested the Half-Life SDK's Studiomdl that comes with the Steam download, and it appears to crunch the normal map down even more aggressively, like it's trying to fit it within some kind of bounding box and X number of pixels away from the edges.
Steam HLSDK Studiomdl compileSteam HLSDK Studiomdl compile
If I were to increase the texture size from 128x128 to 134x134, the UV map ends up fitting the actual textures a lot closer to how it should, give or take exceptions like the face extending too far out, and the edges of the UVs being at the edges of the textures, but only because Studiomdl keeps the forced 3 pixel distance from the edges of the texture. This is making me think of a precision or math issue of some sort?
Recompiled with Sven Studiomdl, 3 pixel distance remains, forcing UV downscaling.Recompiled with Sven Studiomdl, 3 pixel distance remains, forcing UV downscaling.
Is it a Blender issue with how the UVs were made by the original modeller or is it a Studiomdl issue? Is there any way to keep the UV maps from getting crunched and to stay accurate to Blender?
Posted 2 weeks ago2024-11-08 07:59:10 UTC Post #349324
This problem doesn't looks like the usual problems/limitations some Studiomdls present.
I suspect it's a Crapender issue.
Or bug with "Crapender Source Tools", or some accidentally tweaked unnecessary setting/option somewhere in the plugin or Crapender.
Or "Crapender Source Tools" doesn't like the new Crapender version, etc...
As a general solution you can try different combinations of old versions of "Crapender Source Tools" and Crapender.
Also check for some tweaked settings/options somewhere in the export plugin or in Crapender.
Altho I don't have a clue what settings/options could do this stupid "sanitar bounding box X number of pixels away from the edges"...
You must be logged in to post a response.