Sign in to follow this  
Followers 0
Sheep_Wizard

How to add custom images in Effects editor (fx editor)

6 posts in this topic

This is a tutorial on how to add custom images into fx editor and use them in a map
 
This tutorial is not on how to use the fx editor
 
For this tutorial you should have a basic understanding of cod4 modtools
 
Firstly create your image. Make sure that the background is transparent (unless your image is a square of something).
Your image dimensions need to be a multiple of 4 e.g. 620x40

nqbua2P.png

Then save it as a dds file.

4ho5GiU.png

 
Next put the image you created into your cod4 directory
 
Then go into asset manager and create a new material and name it something.

fumAu2T.png

 
Now change the materialType to effect,
the surfaceType to none
the usage to <not in editor>
the blendFunc to Blend (Without this the transparency in your image will show up as black. You will not need to change this if your image has no transparency)

6QeycjB.png

 
Now scroll down to colour map and click the 3 dots and select you image that you put in your cod4 directory.

ZRil3LK.png

Under color map set it to notile and nomip bilinear

Uc3aOL7.png

 
Now click save in asset manager (you need to save this file to [Call of Duty 4\source_data]
 
Now press f10 to covert the image, your cmd should look like this when done.

pTapc8u.png

If it doesnt read the error and see if it is something that needs to be changed in asset manager.
 
--side note--
You can download the these setting here: Download
Put this file in the source_data file in your cod4 directory, then in asset manager go to open and load it and rename the entry and change the colour map to your image, then convert, the settings will already be there
----
 
Now open up EffectsEd
 
Click the wand button at the top to make a new segment

eogANKr.png

 
Now go to the visuals tab, make sure the Element type is on bilboard Sprite.
 
click the folder button, you should be in a folder called materials
 
Next to File name change the drop down list to All files

qwX9pX2.png

--sidenote--
If you name your material gfx_something it will show up in this list and you wont change the file settings
----
 
Now search for the name of your image and select it  [Call of Duty 4\raw\materials]
 
Now go to the generation tab and change the count to 1 (this means the 1 particle will show up in 1 cycle, increase this number to add more)

OD8R0Wu.png

 
Now go to the size tab and change the scale to 10 (this will be the size of the image change if you want)

XbvBNT7.png

 
Now save your fx in your fx folder [Call of Duty 4\raw\fx]

6aSg82Y.png

 
Now click play and you should see your image come up.

SJmjEL4.png

 
Now mess around with the different settings to make you effect

zzpQIUy.png

 
--How to add the fx to your map--
 
In your map .gsc file add this line in main() to load your fx
 
level.callthiswhatever = loadFx( "yourfxnamehere" );

Here is how mine looks:

2Pr1NmQ.png

 
Now create a thread and add your effect how ever you like, i'm going to make mine play every 5 seconds.

enBVEpp.png

 
Now go to your images folder in your cod4 directory and look find your image [Call of Duty 4\raw\images]

U7jGnNu.png

Now copy the image iwi into your maps .iwd

iAOAMI2.png

 
Now you will need to add these lines in your maps .csv to load the fx and material.
material,yourmaterialname

fx,yourfxname

Here is how mine looks:

xpy43qc.png

 
Now build the maps fast files and enjoy your awesome fx
77e8d265169da610b7fbdb0219e8a335.gif
 
 
 
If you need help feel free to ask
 
 
 
 

 

Also should add that if people textures end up with a white background despite having alphaTest to always then you should change it GE128 and it should work  wink.png

 

 

7

Share this post


Link to post
Share on other sites

Depending on the fx your wanting to use you can use the stock "props/fire_barrel" to have a trail like fx this will also skip heaps of steps.

0

Share this post


Link to post
Share on other sites

lel why bump old topics m1+m8.

im agree

2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  
Followers 0