UGX-Mods

Call of Duty 5: World at War => Help Desk => Topic started by: FireIceJet on July 10, 2014, 06:41:54 am

Title: How to create moving texture on guns??? :-\
Post by: FireIceJet on July 10, 2014, 06:41:54 am
Like the title said, how do you achieve that? I seen some maps with that, but not really sure how to do it...
Title: Re: How to create moving texture on guns??? :-\
Post by: treminaor on July 10, 2014, 07:13:32 am
Like the title said, how do you achieve that? I seen some maps with that, but not really sure how to do it...
If you want to have a custom scrolling texture, you need to use either the "Texture Scroll" checkbox or the sub layer scroll checkbox, depending on what type of material you are making:

(http://i.imgur.com/rIEwJl0.png)
Texture Scroll will literally just scroll the texture sideways and has no configurable options.

(http://i.imgur.com/OMvk7pc.png)
Sub Layer Scroll will do the same as Texture scroll but allows you to specify what direction and how fast you want the scrolling to occur (uScroll is up speed, vScroll is sideways speed. Set 0 on one of the two to just have the texture scroll horizontally or vertically, or set numbers for both to have a diagonal scroll. You can also select a "sub layer" texture file which will appear underneath the texture that is scrolling. The multiply texture needs to have an alpha channel in order for the base layer to be seen, and only the multiply texture will move when sub-layer scroll is enabled.

I do not know what happens when you enable both Texture Scroll and Sub-layer scrolling, would be fun to find out.
Title: Re: How to create moving texture on guns??? :-\
Post by: FireIceJet on July 10, 2014, 08:25:14 am
If you want to have a custom scrolling texture, you need to use either the "Texture Scroll" checkbox or the sub layer scroll checkbox, depending on what type of material you are making:

(http://i.imgur.com/rIEwJl0.png)
Texture Scroll will literally just scroll the texture sideways and has no configurable options.

(http://i.imgur.com/OMvk7pc.png)
Sub Layer Scroll will do the same as Texture scroll but allows you to specify what direction and how fast you want the scrolling to occur (uScroll is up speed, vScroll is sideways speed. Set 0 on one of the two to just have the texture scroll horizontally or vertically, or set numbers for both to have a diagonal scroll. You can also select a "sub layer" texture file which will appear underneath the texture that is scrolling. The multiply texture needs to have an alpha channel in order for the base layer to be seen, and only the multiply texture will move when sub-layer scroll is enabled.

I do not know what happens when you enable both Texture Scroll and Sub-layer scrolling, would be fun to find out.

Alright, thanks a lot Treminaor for the helpful info!  ;D
Title: Re: How to create moving texture on guns??? :-\
Post by: treminaor on July 10, 2014, 08:30:05 am
Alright, thanks a lot Treminaor for the helpful info!  ;D
If my answer has sufficiently answered your question, please choose it as the Best Answer by clicking the button that looks like this on my post:

(http://i.imgur.com/ob0itrv.png)

Glad my answer was helpful :)
Title: Re: How to create moving texture on guns??? :-\
Post by: RamboBadass on July 10, 2014, 09:40:12 am
I do not know what happens when you enable both Texture Scroll and Sub-layer scrolling, would be fun to find out.
Hell I'll try in when I wake up
Title: Re: How to create moving texture on guns??? :-\
Post by: FireIceJet on July 10, 2014, 11:11:33 am
If my answer has sufficiently answered your question, please choose it as the Best Answer by clicking the button that looks like this on my post:

(http://i.imgur.com/ob0itrv.png)

Glad my answer was helpful :)

Done!  :D :D :D
Title: Re: How to create moving texture on guns??? :-\
Post by: bigboyys12345 on July 10, 2014, 11:14:26 am
Did you ever get the moving textures to move on weapons? because i couldnt get it to work  :'(
Title: Re: How to create moving texture on guns??? :-\
Post by: FireIceJet on July 10, 2014, 11:17:04 am
Did you ever get the moving textures to move on weapons? because i couldnt get it to work  :'(

Did you manage to get the texture to work in-game? If so, mind showing us a screenshot of it?
Title: Re: How to create moving texture on guns??? :-\\
Post by: bigboyys12345 on July 10, 2014, 11:28:50 am
Ignore the goofy textures and stuff  :P but here it is!
(http://C:\Users\Owner\Documents\Razer\Screenshots\Call of Duty© World at War/camo.bmp)


(hope i added the picture the right way)

Post Merge: July 10, 2014, 11:30:51 am
not sure how to upload a picture :-\
Title: Re: How to create moving texture on guns??? :-\
Post by: RamboBadass on July 10, 2014, 11:34:38 am
Use imgur.com
Then copy the link that says BB code
Title: Re: How to create moving texture on guns??? :-\\
Post by: bigboyys12345 on July 10, 2014, 11:45:16 am
ok thanks! here it is!
(http://i.imgur.com/gkaj97y.jpg)

Post Merge: July 10, 2014, 12:15:50 pm
did you ever get your texture to move?
Title: Re: How to create moving texture on guns??? :-\
Post by: FireIceJet on July 10, 2014, 12:23:05 pm
Okay, I have just put a custom texture on a pistol. However, it appears completely black in game for some reason. I chose scrolling texture in Asset Manager and I also used TomXmodelUtils to check the texture of the gun and it looks fine. It's just that it shows up black in-game. Is it because of some mistake in Asset Manager or...? :(
Title: Re: How to create moving texture on guns??? :-\
Post by: SajeOne on July 10, 2014, 02:58:36 pm
Have you moved the images from "raw/images" to "mod/images" and checked them in your IWD list within the mod builder tab in launcher?
Title: Re: How to create moving texture on guns??? :-\
Post by: FireIceJet on July 10, 2014, 03:06:44 pm
Damn, I can't believe I forgot to do that step. Thanks a lot, Sajeone! +1 Respect :D
Title: Re: How to create moving texture on guns??? :-\
Post by: bigboyys12345 on July 10, 2014, 10:21:19 pm
If you want to have a custom scrolling texture, you need to use either the "Texture Scroll" checkbox or the sub layer scroll checkbox, depending on what type of material you are making:

(http://i.imgur.com/rIEwJl0.png)
Texture Scroll will literally just scroll the texture sideways and has no configurable options.

(http://i.imgur.com/OMvk7pc.png)
Sub Layer Scroll will do the same as Texture scroll but allows you to specify what direction and how fast you want the scrolling to occur (uScroll is up speed, vScroll is sideways speed. Set 0 on one of the two to just have the texture scroll horizontally or vertically, or set numbers for both to have a diagonal scroll. You can also select a "sub layer" texture file which will appear underneath the texture that is scrolling. The multiply texture needs to have an alpha channel in order for the base layer to be seen, and only the multiply texture will move when sub-layer scroll is enabled.

I do not know what happens when you enable both Texture Scroll and Sub-layer scrolling, would be fun to find out.

What is an alpha channel?
Title: Re: How to create moving texture on guns??? :-\
Post by: ProGamerzFTW on July 10, 2014, 10:22:33 pm
What is an alpha channel?

Basically the transparency/opacity.
Title: Re: How to create moving texture on guns??? :-\
Post by: treminaor on July 10, 2014, 10:29:16 pm
What is an alpha channel?
It's for transparency. Google it for more info.
Title: Re: How to create moving texture on guns??? :-\
Post by: bigboyys12345 on July 11, 2014, 01:32:31 am
Damn, I can't believe I forgot to do that step. Thanks a lot, Sajeone! +1 Respect :D
Does the texture move?
Title: Re: How to create moving texture on guns??? :-\
Post by: FireIceJet on July 11, 2014, 01:58:04 am
Does the texture move?

Yeap, it is working without a problem now! ;D
Title: Re: How to create moving texture on guns??? :-\
Post by: bigboyys12345 on July 11, 2014, 02:13:17 am
Yeap, it is working without a problem now! ;D
could i get a pic of your settings on asset manager? because i cant get mine to move
Title: Re: How to create moving texture on guns??? :-\
Post by: FireIceJet on July 11, 2014, 03:39:29 am
Here it is:

(http://i61.tinypic.com/14bq1qr.jpg)

And remember to enable this as well:

(http://i62.tinypic.com/28r087q.jpg)

This is how my pistol looks in-game BTW:

(https://i.imgflip.com/a828g.gif) (https://imgflip.com/gif/a828g)

Hope it works for you too! :D
Title: Re: How to create moving texture on guns??? :-\
Post by: bigboyys12345 on July 11, 2014, 04:31:54 am
If you want to have a custom scrolling texture, you need to use either the "Texture Scroll" checkbox or the sub layer scroll checkbox, depending on what type of material you are making:

(http://i.imgur.com/rIEwJl0.png)
Texture Scroll will literally just scroll the texture sideways and has no configurable options.

(http://i.imgur.com/OMvk7pc.png)
Sub Layer Scroll will do the same as Texture scroll but allows you to specify what direction and how fast you want the scrolling to occur (uScroll is up speed, vScroll is sideways speed. Set 0 on one of the two to just have the texture scroll horizontally or vertically, or set numbers for both to have a diagonal scroll. You can also select a "sub layer" texture file which will appear underneath the texture that is scrolling. The multiply texture needs to have an alpha channel in order for the base layer to be seen, and only the multiply texture will move when sub-layer scroll is enabled.

I do not know what happens when you enable both Texture Scroll and Sub-layer scrolling, would be fun to find out.

Texture Scroll doesnt show up in my material settings!!!!  :-\   I dont know what happened!! it was there before but it wasnt working and now its gone! Any advice or help?

(http://i.imgur.com/8AIV4UP.jpg)
Title: Re: How to create moving texture on guns??? :-\
Post by: FireIceJet on July 11, 2014, 04:34:42 am
Did you follow all of the settings on the pic that I have shown? It should be 'model phong', or else it will not work.
Title: Re: How to create moving texture on guns??? :-\
Post by: bigboyys12345 on July 11, 2014, 04:43:23 am
wow im retarded :P but I checked it and it doesnt work  :'(  I think im just gonna give up  :gusta:
Title: Re: How to create moving texture on guns??? :-\
Post by: treminaor on July 11, 2014, 05:34:04 am
wow im retarded :P but I checked it and it doesnt work  :'(  I think im just gonna give up  :gusta:
Make sure you reconverted the material after changing the scroll settings and make sure you reconverted your whole map + mod to apply the changes.
Title: Re: How to create moving texture on guns??? :-\
Post by: FireIceJet on July 11, 2014, 05:34:49 am
Just try again. I had that black texture error, but I figured it out how to do it thanks to Sajeone. You can PM me if you encounter any more bugs/error. I will try my best to help. :)
Title: Re: How to create moving texture on guns??? :-\
Post by: bigboyys12345 on July 11, 2014, 06:27:01 am
Make sure you reconverted the material after changing the scroll settings and make sure you reconverted your whole map + mod to apply the changes.
I've reconverted my material, recompiled my map and re-built my mod but it doesnt work, and I've done this multiple times with different images. :-\ Not sure what I'm doing wrong :-[

Just try again. I had that black texture error, but I figured it out how to do it thanks to Sajeone. You can PM me if you encounter any more bugs/error. I will try my best to help. :)

I appricate it but I don't think ill be able to get it to work  :'(
Title: Re: How to create moving texture on guns??? :-\
Post by: FireIceJet on July 11, 2014, 06:50:30 am
Alright, I will write down all the necessary steps here for you:

Code Snippet
Plaintext
1) Get an image that you like.

2) Open it in Photoshop/Gimp/Paint. I personally recommend using Photoshop and change the pic size to a power of 2 (Ex. 1024x1024, 512x512, etc.)

3) Save the image as a DDS/TGA in root/raw/images. Works either way. Just use TGA for your case and just leave the TGA settings as it is.

4) Open up Asset Manager and follow the settings that are on the image that I showed you. (You must remember what you named it)

5) Convert it by pressing F10 and it should say 'Conversion Done.'

6) Copy the converted file in root/raw/images and paste it in your root/mods/YOURMODNAME/images folder.

7) For the material to work on the gun, you go into root/raw/xmodel and find the viewmodel of your gun. Since you are using the Beretta, find viewmodel_beretta. Make a copy of that file and rename it something like viewmodel_beretta_new_tex. Open the file with Notepad++(Download it if you don't have it) and find 'mtl_weapon_beretta'. Replace that with what you named your material in Step 4.

8) Find your beretta file in root/mods/YOURMODNAME/weapons/sp, which supposedly should be named beretta. Make a copy of this as well and rename it beretta_new_tex(The reason for this is to keep the original beretta gun instead of replacing it). Open it up with Notepad++ and find 'viewmodel_beretta'. Replace that with what you named your viewmodel file in root/raw/xmodel. Save/close.

9) Assuming that you ported this gun over from COD 4, insert this line 'weapon,sp\beretta_new_tex' in your mod.csv(It is the box beside the IWD list in Mod Builder) Remember to include this weapon in _zombiemods_weapons and dlc3_code(Copy this from the raw/maps folder and paste it in YOURMODNAME/maps folder if you haven't already)

9) Check the image in the IWD List in Mod Builder. Compile and Build Mod.


Alright, this should be able to work. This is pretty much what I did for it to work in-game. Try it and reply again if you encounter any other errors/bugs.
Title: Re: How to create moving texture on guns??? :-\\
Post by: bigboyys12345 on July 11, 2014, 07:06:57 am
Thanks for the help i was just changing the IWI file of the weapon, but theres one problem!! i'm using the Beretta from the UGX mod and i dont know where the view model is because its not in raw/xmodel

Post Merge: July 11, 2014, 07:08:07 am
and there is no xmodel folder in the ugxm_guns.iwd
Title: Re: How to create moving texture on guns??? :-\
Post by: FireIceJet on July 11, 2014, 07:10:01 am
Just go to the root folder and search the entire folder for it by going to the top right corner. There should be a search bar there and just type in 'viewmodel_beretta' and see if any file pops up.
Title: Re: How to create moving texture on guns??? :-\
Post by: bigboyys12345 on July 11, 2014, 12:16:52 pm
nothing  :-\
Title: Re: How to create moving texture on guns??? :-\
Post by: FireIceJet on July 11, 2014, 12:55:07 pm
Then I am not really sure how to do it then :( I guess you could try asking Treminaor for some help with this.
Title: Re: How to create moving texture on guns??? :-\
Post by: ProGamerzFTW on July 11, 2014, 01:02:07 pm
Due to that it's illegal to post raw assets, the ugx gun models are stored in the fast files where they are inaccessible as of now.
Title: Re: How to create moving texture on guns??? :-\
Post by: RamboBadass on July 11, 2014, 01:39:11 pm
You can do this all with your map and mod but not UGX mod or anyone's mod you must have the xmodels to do this.... Fig. I'd stop you now lol as he^ said above me. The models in the UGX mod are contained in the mod.ff witch you can't access
Title: Re: How to create moving texture on guns??? :-\
Post by: Wav3yZeus on September 01, 2014, 03:15:58 pm
Hey I'm doing this moving camo for cod4 but it's same like for waw and after i want to convert the file it sais to me "GTD is read only.Change can not be converted".Please help somebody  :-\
Title: Re: How to create moving texture on guns??? :-\
Post by: DidUknowiPwn on September 01, 2014, 03:20:57 pm
Hey I'm doing this moving camo for cod4 but it's same like for waw and after i want to convert the file it sais to me "GTD is read only.Change can not be changed".Please help somebody  :-\
Right click the GDT, hit properties and uncheck read-only.
Title: Re: How to create moving texture on guns??? :-\\
Post by: Wav3yZeus on September 01, 2014, 03:45:21 pm
Thank you ill try it :)

Double Post Merge: September 01, 2014, 04:19:07 pm
Its not working please if you can do tutorial video how to do it.It will be better for me to do it please :)
Title: Re: How to create moving texture on guns??? :-\
Post by: ProGamerzFTW on September 01, 2014, 06:31:24 pm
Hey I'm doing this moving camo for cod4 but it's same like for waw and after i want to convert the file it sais to me "GTD is read only.Change can not be converted".Please help somebody  :-\

You replied to a topic over a month old, I recommend making your own topic next time. :P