sneh
02-28-2009, 06:00 PM
FIXED
Ok, I realized it will take some time to write an in-depth proper tutorial that covers and explains everything properly.. so for now, here is a really quick run-through from A-Z :
Creating a custom lens flare, in your map
(Note: starting a new lens flare crashes the editor!)
Open the stock lens flare package, open a lens flare in the lens flare editor and choose "save package" from it's menu.
Choose a name for the package. (eg "sneh_lensflares.upk")
From the new package, with your map open, duplicate a lens flare and a material to your map.
Open the lens flare from your map, and under "SOURCE" expand "Source Element" and in "LFMaterials" replace the material with the one in your map.
(You can duplicate and replace the material under "REFLECTIONS" too - but using the stock materials is fine, unless you want to customize them)
Under "Bounds", ensure bUseFixedRelativeBoundingBox = True
(Unless you designate a Mesh, this is used to determine the size of the lensflare for occlusion purposes.)
Generally, start with a small number (eg between -4 to 4 and -16 to 16)
If your lensflare is inside a mesh, you might need to bump the numbers up a little so it shows through.
Other basic settings are Size, and Color.
Open the material. Since you duplicated a stock material, it should already be set up correctly to work.
Note the LensFlareOcclusion, LensFlareIntensity, and LensFlareRadialDistance nodes. These are effected by settings in the lens flare. (for example, without the LensFlareOcclusion node it would never disappear behind objects - and the LensFlareOcclusion node value is determined by settings in the lens flare)
You might start with just replacing the textures in the material, and you can duplicate it to make different ones.
Ok, I realized it will take some time to write an in-depth proper tutorial that covers and explains everything properly.. so for now, here is a really quick run-through from A-Z :
Creating a custom lens flare, in your map
(Note: starting a new lens flare crashes the editor!)
Open the stock lens flare package, open a lens flare in the lens flare editor and choose "save package" from it's menu.
Choose a name for the package. (eg "sneh_lensflares.upk")
From the new package, with your map open, duplicate a lens flare and a material to your map.
Open the lens flare from your map, and under "SOURCE" expand "Source Element" and in "LFMaterials" replace the material with the one in your map.
(You can duplicate and replace the material under "REFLECTIONS" too - but using the stock materials is fine, unless you want to customize them)
Under "Bounds", ensure bUseFixedRelativeBoundingBox = True
(Unless you designate a Mesh, this is used to determine the size of the lensflare for occlusion purposes.)
Generally, start with a small number (eg between -4 to 4 and -16 to 16)
If your lensflare is inside a mesh, you might need to bump the numbers up a little so it shows through.
Other basic settings are Size, and Color.
Open the material. Since you duplicated a stock material, it should already be set up correctly to work.
Note the LensFlareOcclusion, LensFlareIntensity, and LensFlareRadialDistance nodes. These are effected by settings in the lens flare. (for example, without the LensFlareOcclusion node it would never disappear behind objects - and the LensFlareOcclusion node value is determined by settings in the lens flare)
You might start with just replacing the textures in the material, and you can duplicate it to make different ones.