I'm trying to understand the file structure of VTFs but this particular byte sequence at the 4th address (0003h) confuses me. Perhaps I'm misunderstanding, but the first 2 addresses are the header, the 3rd is the low-res (file?) thumbnail data, and then after that should be the high-res image data for the crosshair (for version 7.2 VTFs). I don't see why the 4th address would be the same across different VTFs if it is actually part of the high-res image data, since that would obviously be different. Does it mark the start of a mipmap or something?
I don't think you're posting this in the right place, try the AlliedModders discord, the Source Engine discord, or the TF2Maps discord.
https://developer.valvesoftware.com/wiki/Valve_Texture_Format#VTF_header
valve wiki says that the header is 80 bytes (so not 32), and that bytes 48 through 51 are for the bumpmap scale
valve wiki says that the header is 80 bytes (so not 32), and that bytes 48 through 51 are for the bumpmap scale
ampereI don't think you're posting this in the right place, try the AlliedModders discord, the Source Engine discord, or the TF2Maps discord.
Thanks for the links, wasn't aware of these communities.
Thanks for the links, wasn't aware of these communities.
turbochad69https://developer.valvesoftware.com/wiki/Valve_Texture_Format#VTF_header
valve wiki says that the header is 80 bytes (so not 32), and that bytes 48 through 51 are for the bumpmap scale
Maybe I'm just blind and/or dumb but where does it say bytes 48-51 are for bumpmap scale?
valve wiki says that the header is 80 bytes (so not 32), and that bytes 48 through 51 are for the bumpmap scale[/quote]
Maybe I'm just blind and/or dumb but where does it say bytes 48-51 are for bumpmap scale?
swampcreatureMaybe I'm just blind and/or dumb but where does it say bytes 48-51 are for bumpmap scale?
Right in the header spec I linked. There are 48 bytes before the value for bumpmap scale, so naturally it will start at byte 48. In the file in your screenshot, the bumpmap scale is set to 1.0. It's not surprising that it's also set to that value in other textures, which was the basis of your question if I understand correctly.
Maybe I'm just blind and/or dumb but where does it say bytes 48-51 are for bumpmap scale?[/quote]
Right in the header spec I linked. There are 48 bytes before the value for bumpmap scale, so naturally it will start at byte 48. In the file in your screenshot, the bumpmap scale is set to 1.0. It's not surprising that it's also set to that value in other textures, which was the basis of your question if I understand correctly.