UGX-Mods

Call of Duty 5: World at War => Help Desk => Mapping => Topic started by: Joeycx on October 01, 2018, 06:03:12 pm

Title: Cod 4 Tree Xmodel, not swaying to wind
Post by: Joeycx on October 01, 2018, 06:03:12 pm
Hi, I recently added wind into my map and i noticed that my cod 4 xmodel tree's don't sway to the wind like my cod 5 trees, is there anyway to make this happen? Thanks!
Title: Re: Cod 4 Tree Xmodel, not swaying to wind
Post by: codmoddd1234 on October 01, 2018, 07:33:45 pm
In asset manager (at the top)
materialtype
"dynamic foliage" or "tree canopy"
//
These might be needed depending on the purpose of the material
Surface properties (at the bottom)
"Noimpacts" "nomarks" "transparent" "nocastshadow" onlycastshadow"
Title: Re: Cod 4 Tree Xmodel, not swaying to wind
Post by: Joeycx on October 02, 2018, 11:52:12 am
In asset manager (at the top)
materialtype
"dynamic foliage" or "tree canopy"
//
These might be needed depending on the purpose of the material
Surface properties (at the bottom)
"Noimpacts" "nomarks" "transparent" "nocastshadow" onlycastshadow"
I've tried both but can't seem get them to work. Here are my settings in asset manager.(https://i.gyazo.com/a7a6e9dc3d8a72dfa2e8751c7c005d70.png) (https://i.gyazo.com/62505efa38c7a553bbe448a21100addc.png)

Here are the model/images i'm using (https://i.gyazo.com/e1a3a6d4f907b0ac0f33285c93d3dfde.png)

(https://i.gyazo.com/e2008b95ea7e54b9c895810e8cf804f6.png)
Title: Re: Cod 4 Tree Xmodel, not swaying to wind
Post by: codmoddd1234 on October 05, 2018, 03:19:33 am
After changing the material to dynamic foliage or tree canopy the models need to be reconverted, it should print "dynamic normals generated" or something like that when converted.
If that doesn't work you might need to delete and remake the gdt material entry if the original material settings are sticking.
//
I can upload a gdt/model/texture if you dont figure it out.
Title: Re: Cod 4 Tree Xmodel, not swaying to wind
Post by: Joeycx on October 05, 2018, 12:45:05 pm
After changing the material to dynamic foliage or tree canopy the models need to be reconverted, it should print "dynamic normals generated" or something like that when converted.
If that doesn't work you might need to delete and remake the gdt material entry if the original material settings are sticking.
//
I can upload a gdt/model/texture if you dont figure it out.
I made a new gdt, added a new entry, did dynamic foliage and canopy settings but both have the same result. I don't know if this is the problem..bu(https://i.gyazo.com/ce43ec95e53d84e43528a9618d69e27c.png) 

I don't quite know, what you ment by "models need to be reconverted", is it just pc convert or something else entirely? If you could upload you gdt, it would help me greatly.
Title: Re: Cod 4 Tree Xmodel, not swaying to wind
Post by: codmoddd1234 on October 06, 2018, 05:58:02 am
Convert materials then models, add images from raw images to mods/mapname/images
In mapname.gsc add dvars above or below zombiemode::main();
]https://www.mediafire.com/download/uu74znaxj57j0fg (http://[object Object)



Title: Re: Cod 4 Tree Xmodel, not swaying to wind
Post by: Joeycx on October 06, 2018, 05:50:55 pm
Convert materials then models, add images from raw images to mods/mapname/images
In mapname.gsc add dvars above or below zombiemode::main();
]https://www.mediafire.com/download/uu74znaxj57j0fg (http://[object Object)
The wind works perfectly but i'm really having trouble with some asset manager things. I'm converting images of the pine tree using your settings and then converting the xmodel  (in the converter it says dynamic foliage generated which i thought ment it was all set but...) the xmodel comes out wonky with some textures missing and the leaves different colors and in game it doesn't move at all. 

(https://i.gyazo.com/693ecfb4d73c67f6e4d34bd5c60e430d.png)

(https://i.gyazo.com/ad0b281f32380141be24613860b532da.png)

(https://i.gyazo.com/275e24b820f3dda157f68932ae9bd44d.png)
Title: Re: Cod 4 Tree Xmodel, not swaying to wind
Post by: codmoddd1234 on October 07, 2018, 10:33:54 pm
If the grass and tree models i sent worked you could try duplicating my gdt entry with the copy/paste/duplicate buttons in asset manager.
In radiant the tree leaves usually are multicolored like the stock trees but ingame they will look normal.
If they are script_models they probably receive light differently or need the "ground lit" option in asset manager but I'm just guessing.
You can send me a model and texture and i can convert and try if you want.

Title: Re: Cod 4 Tree Xmodel, not swaying to wind
Post by: Joeycx on October 08, 2018, 02:44:05 pm
If the grass and tree models i sent worked you could try duplicating my gdt entry with the copy/paste/duplicate buttons in asset manager.
In radiant the tree leaves usually are multicolored like the stock trees but ingame they will look normal.
If they are script_models they probably receive light differently or need the "ground lit" option in asset manager but I'm just guessing.
You can send me a model and texture and i can convert and try if you want.
I FINALLY GOT IT TO WORK. I had to rename my material to the actual material used instead of the one you gave me (i'm really dumb so of course it looked messed up when i converted it) In game the trees sway and the color looks fine but a small problem would be that the tree trunk sways also, instead of just the canopy of the tree (the part of the tree where there are only leaves,pines etc) the col dds used also uses the tree trunk texture so ingame it looks fine from a distance but up close the tree trunk also sways which looks very bizzare. 

(https://i.gyazo.com/dfa1c877f99d8fb7c837dee51e01238d.png)


Title: Re: Cod 4 Tree Xmodel, not swaying to wind
Post by: codmoddd1234 on October 08, 2018, 07:47:07 pm
2 materials 1 texture.
You can separate the trunk from the canopy/branches/leaves in maya and make another gdt model_phong material for the trunk/bark but still reference the same texture file as the leaves.
Title: Re: Cod 4 Tree Xmodel, not swaying to wind
Post by: Joeycx on October 09, 2018, 11:14:12 pm
2 materials 1 texture.
You can separate the trunk from the canopy/branches/leaves in maya and make another gdt model_phong material for the trunk/bark but still reference the same texture file as the leaves.
That tree model is in the back of the map anyways and i tweaked the settings to make it less awkward. I also changed the rest of my map's foliage that wasn't moving and it works flawlessly, so thank you very much on helping me!