STEAM GROUP
Crowbar [Source Engine Modding Tool] CrowbarTool
STEAM GROUP
Crowbar [Source Engine Modding Tool] CrowbarTool
1,103
IN-GAME
7,329
ONLINE
Founded
October 26, 2013
Language
English
This topic has been locked
YuRaNnNzZZ Apr 28, 2017 @ 8:35am
[FIXED][BUG] Incorrect UV map after decompilation of model when texture dimensions smaller than UV map.
Crowbar version: 0.42

Steps Taken:
  1. Extracted models from CSO .nar files.
  2. Made sure that UV map is present in the model is correct. (screenshot)[i.imgur.com]
  3. Decompiled model in Crowbar.
  4. Imported decompiled model in MilkShape 3D.

Expected:
Model decompiled properly and have correct UV map.

Issues:
Decompiled model have broken UV map. (screenshot)[i.imgur.com]

Operating System:
Windows 7 x64

Samples:
Model, proper texture, decompiled model and log.[mega.nz]
Last edited by ZeqMacaw; Dec 3, 2017 @ 10:21pm
< >
Showing 1-11 of 11 comments
ZeqMacaw Apr 28, 2017 @ 4:09pm 
Provide the decryption key or disable the encryption and I'll take a look at the issue.
YuRaNnNzZZ Apr 28, 2017 @ 4:19pm 
I've reuploaded the file to dropbox[www.dropbox.com].
ZeqMacaw Apr 29, 2017 @ 2:35pm 
I downloaded and looked at the model in the model viewer. It shows a black gun.

I looked at the BMP file in a image tool, and it is a solid black color.

I also decompiled the model using Crowbar 0.42 and then viewed the mesh and texture in Blender. It shows as a solid black color there, as well.

My conclusion is that the importer for Milkshape 3D messed up the texturing.
YuRaNnNzZZ Apr 29, 2017 @ 3:10pm 
For some gun models, CS:O loads textures from external source, and models themselves contains only small black/simple pattern placeholder textures. The problem is that i can't edit texture in the model with HLMV, as the texture size in the model is different that original texture. (if i could then i wouldn't have problems with UV map ¯\_(ツ)_/¯)
Also i've opened this model in Blender, and UV map is messed up there too.[i.imgur.com]
Last edited by YuRaNnNzZZ; Apr 29, 2017 @ 3:10pm
ZeqMacaw Apr 29, 2017 @ 3:33pm 
You have not provided the texture file(s).
ZeqMacaw Apr 30, 2017 @ 6:18am 
Please provide the *external* texture file found in the game.
YuRaNnNzZZ Apr 30, 2017 @ 6:40am 
I've provided that external texture in the archive already.
ZeqMacaw Apr 30, 2017 @ 10:18am 
Ah, I found it. I got confused with the names of the folders and files.
ZeqMacaw Apr 30, 2017 @ 11:02am 
Where is the external texture file stored in relation to the MDL file?
How did you determine that the external texture file is the correct one for this model? (I am guessing you determined it by the file name, but I need all the info you can give me.)

I have determined that there must be some different way to get the texture uv coordinates than what is typically used for Half-Life (v10) models. Unfortunately, I do not see any info in the MDL file itself to determine how to fit the coordinates to the size of the BMP file you have given.
Last edited by ZeqMacaw; Apr 30, 2017 @ 11:02am
ZeqMacaw Apr 30, 2017 @ 12:28pm 
Discussed and tested a couple of dev versions of Crowbar via private Discord chat. Tests so far have been successful, so the changes should be in the next public release.
< >
Showing 1-11 of 11 comments
Per page: 1530 50

Date Posted: Apr 28, 2017 @ 8:35am
Posts: 11