UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

How to create moving texture on guns??? :-\

HOT
broken avatar :(
Created 10 years ago
by FireIceJet
0 Members and 1 Guest are viewing this topic.
16,047 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2013
Last active: 3 months ago
Posts
541
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
ProGamerzFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
What is an alpha channel?

Basically the transparency/opacity.
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 8 months ago
Posts
5,551
Respect
6,691Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
What is an alpha channel?
It's for transparency. Google it for more info.
broken avatar :(
×
broken avatar :(
Location: ca
Date Registered: 5 February 2014
Last active: 1 year ago
Posts
39
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
bigboyys12345's Groups
bigboyys12345's Contact & Social Links
Damn, I can't believe I forgot to do that step. Thanks a lot, Sajeone! +1 Respect :D
Does the texture move?
broken avatar :(
×
broken avatar :(
Location: sg
Date Registered: 18 February 2013
Last active: 7 years ago
Posts
31
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
FireIceJet's Groups
FireIceJet's Contact & Social Links
Does the texture move?

Yeap, it is working without a problem now! ;D
broken avatar :(
×
broken avatar :(
Location: ca
Date Registered: 5 February 2014
Last active: 1 year ago
Posts
39
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
bigboyys12345's Groups
bigboyys12345's Contact & Social Links
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
broken avatar :(
×
broken avatar :(
Location: sg
Date Registered: 18 February 2013
Last active: 7 years ago
Posts
31
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
FireIceJet's Groups
FireIceJet's Contact & Social Links
Here it is:



And remember to enable this as well:



This is how my pistol looks in-game BTW:



Hope it works for you too! :D
broken avatar :(
×
broken avatar :(
Location: ca
Date Registered: 5 February 2014
Last active: 1 year ago
Posts
39
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
bigboyys12345's Groups
bigboyys12345's Contact & Social Links
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:

(Image removed from quote.)
Texture Scroll will literally just scroll the texture sideways and has no configurable options.

(Image removed from quote.)
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?

broken avatar :(
×
broken avatar :(
Location: sg
Date Registered: 18 February 2013
Last active: 7 years ago
Posts
31
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
FireIceJet's Groups
FireIceJet's Contact & Social Links
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.
broken avatar :(
×
broken avatar :(
Location: ca
Date Registered: 5 February 2014
Last active: 1 year ago
Posts
39
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
bigboyys12345's Groups
bigboyys12345's Contact & Social Links
wow im retarded :P but I checked it and it doesnt work  :'(  I think im just gonna give up  :gusta:
Last Edit: July 11, 2014, 04:44:39 am by bigboyys12345
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 8 months ago
Posts
5,551
Respect
6,691Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
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.
broken avatar :(
×
broken avatar :(
Location: sg
Date Registered: 18 February 2013
Last active: 7 years ago
Posts
31
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
FireIceJet's Groups
FireIceJet's Contact & Social Links
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. :)
broken avatar :(
×
broken avatar :(
Location: ca
Date Registered: 5 February 2014
Last active: 1 year ago
Posts
39
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
bigboyys12345's Groups
bigboyys12345's Contact & Social Links
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  :'(
broken avatar :(
×
broken avatar :(
Location: sg
Date Registered: 18 February 2013
Last active: 7 years ago
Posts
31
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
FireIceJet's Groups
FireIceJet's Contact & Social Links
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.
broken avatar :(
×
broken avatar :(
Location: ca
Date Registered: 5 February 2014
Last active: 1 year ago
Posts
39
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
bigboyys12345's Groups
bigboyys12345's Contact & Social Links
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
Last Edit: July 11, 2014, 07:08:07 am by bigboyys12345
broken avatar :(
×
broken avatar :(
Location: sg
Date Registered: 18 February 2013
Last active: 7 years ago
Posts
31
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
FireIceJet's Groups
FireIceJet's Contact & Social Links
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.

 
Loading ...