Tuesday, 9 June 2015

Particle Effect - Single Lens Flare

The effect I decided to use for my map Paradox is a basic lens flare. The lens flare itself was provided to be via the VLE and instructions and an explanation as how it works. I understand that a lens flare is an object that contains four overlapping textures. The source, streak, the near and far textures. Each image appears as a transparent glow and function exactly as a lens flare should. The actual object you can place in the map and due to its settings, it will always be facing the player.



The source is the central texture, the circular glow. The streak is the horizontal texture that extends to the left and the right of the source. The near and fare textures are the two textures that appear to hover to the side of the source/streak. They move in accordance to the player's distance to the lens flare.


I duplicated the original lens flare provided to be via the VLE and moved the duplicate to my own package file. From there, I altered the size of the source, the streak and then I altered the colour from cyan to a pale shade of green. I did this because I intended to place my lens flare at the base of my holographic silo in the centre of the map. The base of the silo and the silo itself glow a pale green, so this lens flare needed to be consistent. After further adjusting the size, I settled on a small but noticeable lens flare.

The size was represented by three values X, Y and Z.
  • X is width, 
  • Y is height.
  • Z is depth.

Each value requires a numeric value. The default size is
  •  X: 310
  •  Y: 310
  •  Z: 0
I adjusted the size and changed the settings to:
  •  X: 40
  •  Y: 40
  •  Z: 0
The colour is represented by XYZ values too. It works the exact same way as RGB (Red, Green and Blue). It would have made more sense to instead represent them as RGB but instead it is XYZ. I altered these settings from pale blue to pale green.



As for each of the textures, they were all made in Photoshop and can be replaced with other images. As a test, I replaced the near and far with a different image. Given the silly nature of the test, I wasn't going to keep those changes. It was just a test. It turns out that the far retains all the original colours of the image it uses and the near uses the same image but it scaled down by 50% and is coloured  a dark teal.


No comments:

Post a Comment