Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature request #2

Open
RaGe742004 opened this issue Mar 29, 2020 · 0 comments
Open

New feature request #2

RaGe742004 opened this issue Mar 29, 2020 · 0 comments

Comments

@RaGe742004
Copy link

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_changeme1_c" (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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant