You are viewing an archive of the old fxhome.com forums. The community has since moved to hitfilm.com.

Optics: Lens Flares

Posted: Tue, 31st Jan 2006, 5:10pm

Post 1 of 11

Cogz

Force: 16050 | Joined: 18th Jun 2002 | Posts: 674

VisionLab User VideoWrap User PhotoKey 5 Pro User MuzzlePlug User PowerPlug User FXpreset Maker Windows User MacOS User

FXhome Team Member

Rating: +10

Some people have had difficulty getting to grips with the Optic engine, so I have thought I'd do a tutorial which runs through step-by-step on making a lens flare, and also includes a bit of tech info along the way.

The lens flare I have created has been added to the presets library which I will link to at the end. I haven't included all the settings but rather given you a general overview about specific parts, so download the preset after you're done reading to see for yourself how it all ticks.

This tutorial applies EffectsLab DV, EffectsLab Pro and VisionLab HD. I'm using EffectsLab Pro specifically to create the tutorial and preset.

1. Locate the 'Effect' tab and add an Optic engine to the canvas, you can do this by double clicking on it or click+drag onto the canvas or the timeline.

2. Click on the 'Optic movement' track on the timeline. You will notice a square box 'handle' appears on the canvas. This is the origin for the lens flare. Currently it is located in the center of the canvas, click and drag it to move it near one of the edges, I've placed mine in the top left, but basically move it away from the center to begin.



Tech: Optic Movement

The optics shapes you add are based along a line, which always runs through the center of the canvas irrespective of where the origin handle is. This is what happens in the real world when you move the camera lens in relation to a light source. To illustrate this point I've drawn lines on the canvas below.




3. Now we're going to start adding shapes to build up our effect. The way I've done my other presets is by starting on the main flare, then adding the secondary flares after. On the timeline, click on the 'Optic shapes' track, this brings up the attributes window in the toolbox. Click on the 'Circle: filled' to add the first shape. I think we'll do a funky blue flash type flare, so click on the color (default as red) and set it to the colors similar to this. Note you can use more than one color.



Tech: The Color Gradient

The shapes in the optics engine are actually greyscale, they are colored either using a single color, or a range of colors which stretch over the range of grey. Taking the example of a palm tree, the image has been desaturated meaning the RGB (red, green, blue) channels are all the same. The range stretches from white to black as you can see by the gradient below the image. Mapping different colours onto this gradient changes how the image is colored, as you can see I've changed white -> green, and black -> blue. You can see where there was white before, its now green, where it was black, its now blue. And the greyscale range between these extremes have a mixture of both green and blue.





Back to our 'Circle: filled' shape, its still looking a bit odd, so lets change the radius to 20, and the outer feather to 131.



4. Now that we have a start, lets add a Spike: star. I've chosen six sides, meaning six points on the star. The width refers to the number of lines which make up each point. I've reduced the brightness of the shape so that the lines appear finer. This trick works with all of the spike shapes.



5. Now we'll add a bit of a burst by adding two 'Spike: fan' shapes; both have 34 sides, meaning 34 lines emitted from the shape. The fan has an angle, defaulting to 0 degrees, the aperture is the angle range plus and minus from this angle. I've given the fan an aperture of 50 degrees.



Tech: Seeding

Some of the variables used in the effects are created using a random function. Using a simple example, picking 5 random numbers from 1 to 100, the result might be 3, 87, 45, 32, 65. If you 'seed' this function with a number, seed=1, the 5 random numbers will be the same every time, changing the seed number creates a different set of random numbers. Tweening this 'seed' over time will cause the effect to change.


6. I still don't think our flare has enough energy, so I'm going to add a couple of 'Line' shapes. Multicoloring them to white ----> blue, like we did for the filled circle in the beginning. I've rotated the lines so that they cover up some of the star spikes, this makes it look like that star is even brighter.



7. To make our flare glow, I'm now going to add a Circle: gradient to cover the whole thing. Wow, ok, that’s looking quite good now. Onto the secondary flares.



8. As I explained earlier the Optic engine runs along this line which extends both sides from the origin going through the center of the canvas. The secondary flare shapes we're going to add next will all run along this line. Since we have a six-sided star, I'm going to use six-sided polygon shapes, but you could use circles or whatever you like.

Click on the 'Polygon' to add it, when it appears its located in the center of our main flare. To move it, change the distance to 62, this is where I'm going to place the first polygon. I don't want these secondary flares to appear too sharp and clear, so I'm going to add some Shape blur, and also adjust the transparency down to about 25. The color of these secondary flares can vary from the main flare, but I'm going to stick to blue/purple colours myself.

9. Add a few more polygons, varying the distance, size, color and transparency until you think you have enough, I've stopped at 5. The end result is a finished flare, now its just figuring out a name, I've decided on Cobalt Crash, and save it as a preset.



See the full sized flare here

Find the preset here

It's also worth mentioning some of the options which I have not used in this Optic effect.

Offset x/y - As I mentioned, the Optic effect runs along this line; you can offset the shape away from this line by changing these variables. As you move the origin about you will notice that the shape sticks to this offset distance.

Controlled/Static - If you have the shape, e.g. a 'Line' set to "controlled", when you click on 'Optic movement' and rotate the entire shape, the 'Line' will also rotate along with the whole shape, set the 'Line' to static, and it will stay at the angle set within the shape.

Can you use the Optic engine for anything other than lens flares?

Having watched Battlestar Galactica 2003 recently I decided to try and recreate the ship 'jumping' effect, using the principles I've laid out in the above tutorial. For those of you not familiar with the show, the spaceships have to perform some sort of hyper light jump, which on screen looks like a few flashes.

Here's a little movie of what I've come up with

The presets for this is in two parts, so make sure you get A and B

Battlestar Jump... Part A
Battlestar Jump... Part B

I hope you have enjoyed reading this, if you have any further questions or perhaps an idea for another tutorial let me know.

Cogz

Last edited Tue, 31st Jan 2006, 5:48pm; edited 1 times in total.

Posted: Tue, 31st Jan 2006, 5:15pm

Post 2 of 11

Klut

Force: 2120 | Joined: 16th Apr 2004 | Posts: 1585

VisionLab User FXpreset Maker Windows User MacOS User FXhome Movie Maker

Gold Member

Yeah, I've always thought of you as the Effectslab Optic engine's LEGEND!

Great tutorial, I never got to make good stuff with the optics engine, now I can smile
Posted: Tue, 31st Jan 2006, 5:53pm

Post 3 of 11

Oeyvind

Force: 3040 | Joined: 6th Jun 2005 | Posts: 568

CompositeLab Pro User EffectsLab Lite User FXpreset Maker Windows User

Gold Member

Cogz wrote:

I hope you have enjoyed reading this...
Yeah, great tutorial there, dude! biggrin Allways wanted to know what looks realistic on a lensflare..! wink Great job!! biggrin biggrin biggrin +1

Oeyvind
Posted: Tue, 31st Jan 2006, 7:51pm

Post 4 of 11

Redhawksrymmer

Force: 18442 | Joined: 19th Aug 2002 | Posts: 2620

VisionLab User VideoWrap User PhotoKey 3 Pro User MuzzlePlug User PowerPlug User PhotoKey 3 Plug-in User FXhome Movie Maker FXpreset Maker Windows User MacOS User

SuperUser

Nice Tutorial, very useful! +1
Posted: Thu, 2nd Feb 2006, 8:58am

Post 5 of 11

Vault FX

Force: 2550 | Joined: 30th May 2003 | Posts: 602

VisionLab User FXpreset Maker Windows User

Gold Member

Really great tutorial, really helpful smile +1

TC
Posted: Sun, 12th Feb 2006, 9:02pm

Post 6 of 11

Landon

Force: 670 | Joined: 12th Mar 2005 | Posts: 162

CompositeLab Pro User EffectsLab Lite User Windows User FXpreset Maker

Gold Member

Great tutorial! This really helped me out! +1! biggrin

-Landon
Posted: Fri, 12th May 2006, 11:43pm

Post 7 of 11

111 000

Force: 0 | Joined: 12th May 2006 | Posts: 1

Member

iam very please to read thistutorial its really nicetutorial and true way making just like this as you have made one thanks alot


Dear sir just tell me the name of soft were in which you have created this lenes flare


just full name as i can buy it from any shop

please if you want to write me so please just email me at az_jN2000@yahoo.com or at fxhome please smile smile
Posted: Fri, 12th May 2006, 11:52pm

Post 8 of 11

Mellifluous

Force: 5604 | Joined: 6th Oct 2002 | Posts: 3782

EffectsLab Pro User Windows User

Gold Member

The program used to create the lens flare is Fxhome's EffectsLab, from this very website. And no, you can't buy it in any shop, it's available only to purchase from this site. You cannot buy/download EffectsLab from anywhere else.

http://fxhome.com/effectslab/
Posted: Sat, 13th May 2006, 12:37pm

Post 9 of 11

Mellifluous

Force: 5604 | Joined: 6th Oct 2002 | Posts: 3782

EffectsLab Pro User Windows User

Gold Member

FXhomer5312 wrote:

Hi

i really contect to you as you told . but how . there no more information about you neither any email address please Email me your email address as i can email you correctly

just email me at rauf.saand@hotmail.com

or at az_jan2000@yahoo.com be soon
DON'T MESSAGE ME. I did not tell you to. See above. You can only buy the software EffectsLab from this site. The one you're on now:

http://fxhome.com/effectslab/
Posted: Wed, 23rd Aug 2006, 9:16pm

Post 10 of 11

Axeman

Force: 17995 | Joined: 20th Jan 2002 | Posts: 6124

VisionLab User VideoWrap User PhotoKey 5 Pro User MuzzlePlug User PowerPlug User PhotoKey 3 Plug-in User FXhome Movie Maker FXpreset Maker MacOS User

SuperUser

Interesting fact I just learned and thought I would share: the geometric shapes that sometimes appear in lens flares (pentagons, hexagons, octagonts, etc.) are actually caused by the aperture in your camera lens. The number of leaves in the diaphragm of the aperture determines the number of sides to the shape your lens will create in a lens flare. A long string of shapes is cause by the aperture opening being reflected back and forth between the glass elements in your lens.
Posted: Thu, 22nd Nov 2007, 3:18am

Post 11 of 11

Skatingecko

Force: 20 | Joined: 19th Oct 2007 | Posts: 14

Member

Amazing! so many combinations, great galactica optic i loved that