Hi, would you consider modifying the VMF-VMAP conversion into another new script to support Call of Duty Black Ops 3 as well ?
Halflife Alyx has now been released, and VRF is able to decompile the VPK files which leaves us with directories full of PNG files, but only .vmat files to be able to import them with.
Call of Duty GDT's are very similar, and I feel someone that knows coding would be able to do this quite easily.
I have attached a basic_concrete.vmat (from HL:Alyx and a concrete.gdt for comparison
The VMAT to GDT conversion would be:
g_tColor -> colorMap
g_tNormal -> normalMap
g_tAmbientOcclusion -> occMap
Obviously the vtex extension would be replaced with png, but the paths should all be exactly the same.
There are two more keys in GDT - cosinePowerMap and specColorMap (gloss and specular) which it doesn't look like it's used in VMAT, so those keys' values can be blank or be replaced with $gloss and $specular respectively.
I have put "changeme0" in the material name (which is the filename without the extension)
Also, I have put "changeme1" at the textures' keys.
e.g. "colorMap" "i_changeme1c" (the i and _c must remain with changeme1 being the material name. (then there's the normal and occlusion)
and at a second place I have changeme2. If you can transfer the entire path from the VMAP file, this entire keys' value can be replaced. (but you must leave the "texture_assets\ in front.)
"i_changeme1_c" ( "image.gdf" )
{
"arabicUnsafe" "0"
"baseImage" "texture_assets\custom_textures\COD2\changeme2.png"
I understand if you're not really interested in doing this, but you never know if you don't ask. :)
But if you are interested, I'm happy to test for you.
I can be reached on here, or via discord https://discord.gg/Cakuqty
Thanks in advance 👍
Hi, would you consider modifying the VMF-VMAP conversion into another new script to support Call of Duty Black Ops 3 as well ?
Halflife Alyx has now been released, and VRF is able to decompile the VPK files which leaves us with directories full of PNG files, but only .vmat files to be able to import them with. Call of Duty GDT's are very similar, and I feel someone that knows coding would be able to do this quite easily. I have attached a basic_concrete.vmat (from HL:Alyx and a concrete.gdt for comparison
The VMAT to GDT conversion would be: g_tColor -> colorMap g_tNormal -> normalMap g_tAmbientOcclusion -> occMap Obviously the vtex extension would be replaced with png, but the paths should all be exactly the same. There are two more keys in GDT - cosinePowerMap and specColorMap (gloss and specular) which it doesn't look like it's used in VMAT, so those keys' values can be blank or be replaced with $gloss and $specular respectively. I have put "changeme0" in the material name (which is the filename without the extension)
Also, I have put "changeme1" at the textures' keys. e.g. "colorMap" "i_changeme1c" (the i and _c must remain with changeme1 being the material name. (then there's the normal and occlusion) and at a second place I have changeme2. If you can transfer the entire path from the VMAP file, this entire keys' value can be replaced. (but you must leave the "texture_assets\ in front.) "i_changeme1_c" ( "image.gdf" ) { "arabicUnsafe" "0" "baseImage" "texture_assets\custom_textures\COD2\changeme2.png"
I understand if you're not really interested in doing this, but you never know if you don't ask. :) But if you are interested, I'm happy to test for you. I can be reached on here, or via discord https://discord.gg/Cakuqty Thanks in advance 👍
VMAT_to_GDT.zip