***************** WAVEFILTER NET+ NULLS  ****************

The tables and text based graphics in this file are best viewed using a mono-spaced font like courier.  Special thanks go to Arnie Cachelin from NewTek for the idea of using nulls to add envelopes to plug-in parameters and Gary Baker of Jim Brown and Associates for the idea of using a focal point null to control depth-of-field.

***************** NULLS QUICK REFERENCE *****************

RGB
*******************************
 Red%			Slider	(0-200)
 Green%			Slider	(0-200)
 Blue%			Slider	(0-200)
 ColorMode		Switch	(0=Multiply, 1=Additive, 2=Replace)

BGC
*******************************
 Bright%		Slider	(0-200)
 Gamma%			Slider	(0-200)
 Contrast%		Slider	(0-200)

BLUR
*******************************
 Blur%			Slider	(0-1000)
 Softer			Switch	(0=Normal, 1=Softer)
 DOFBlur%		Slider	(0-1000)
 MaxDOFBlur%		Slider	(0-1000)
 FocalPoint		Distance
 FocalRange		Distance
 DOFSeperator		Slider	(0.01-10)

ENHANCE
*******************************
 Enhance%		Slider	(0-200)
 AntialiasPasses	Switch	(1-4, >4 is edge blur)
 Antialias%		Slider	(0=Mark Affected, 1-200)
 AntialiasT		Slider	(0-200)

NOISE
*******************************
 Noise%			Slider	(0-100)
 ChromaNoise		Switch	(0=Luminance Noise, 1=Chroma Noise)
 NoiseRed%		Slider	(0-100)	
 NoiseGreen%		Slider	(0-100)
 NoiseBlue%		Slider	(0-100)

FILTER
*******************************
 Posterize%		Slider	(0-255)
 NTSCLimit		Switch	(0=No Limit, 1=NTSC Limit)
 BlackandWhite		Switch	(0=Color, 1=B&W)
 Negative		Switch	(0=Positive, 1=Negative)
 FlipFrame		Switch	(0=Normal, 1=Horz, 2=Vert)

AFFECT
*******************************
 FiltersShouldAffect	Switch	(0=Full Frame, 1=Background Only, 2=Objects Only,
				3=Shadows Only, 4=Color Range,
				5=DOF Blur Near Range Only,
				6=DOF Blur Far Range Only)
 HighRed		Slider	(0-255)
 HighGreen		Slider	(0-255)
 HighBlue		Slider	(0-255)
 LowRed			Slider	(0-255)
 LowGreen		Slider	(0-255)
 LowBlue		Slider	(0-255)

***************** RULES FOR USING NULLS *****************

All null names in this document are generic null names.  To use a null in a scene, the name of the null must be EXACTLY AS LISTED and the names are CASE SENSITIVE.  Because four different WaveFilters can be active in a single scene, you must prefix all null names with the number of the WaveFilter you wish it to control.

An example might be the Bright% null used to control WaveFilter 1.  The correct name for the null in the scene is "1Bright%".  You might want to use one set of nulls working with WaveFilter 1 to affect only the background and another set of nulls working with WaveFilter 2 to effect only objects.

By viewing your scene from the top with a 10x10 grid at a grid size of 20 you can control the nulls in a fashion similar to a mixing board.  As you move the null up the screen, (Greater Z values) you get more of the selected effect. All nulls with the exception of "FocalPoint" and "FocalRange" use only the Z axis value can be moved anywhere on the X or Y axis without affecting the returned value of the null.   

Use "Load Objects from Scene" in the "Objects" panel to load WaveFilter control nulls and add WaveFilter to the scene.  (Do not add the lights)  There are several pre-configured control null scenes.  Each scene starts with the number of the WaveFilter it will load followed by the null group name as listed in "NULLS QUICK REFERENCE" above.  Each control null scene filename has the ".LWO" extension.

When a null is loaded, the associated value on the "Option Panel" will be greyed and will not except changes.  The value shown will be the position of the associated null at frame zero.  Deselecting "Use Nulls" under the "File" menu in the "Option Panel" will disable the use of nulls and once the "Option Panel" is closed and reopened will then except chages to all values.

To understand the nulls better, load the "1ALLNULL.LWS" scene and examine the position of each null.  The idea was to create a kind of image processing mixing board right in Layout.  The position of each null is such that it will not cause any effect on the scene.  Moving nulls is how you create new effects.  Moving a null on the Z axis is the same as entering that value in the "Option Panel". Offsetting each null to a different X position separates each null for easier control. Also each group of nulls is color coded to help you visually keep the nulls identified.

There are three types of nulls used with WaveFilter, Sliders, Switches and Position nulls.  Sliders move along the Z axis and the Z value is used for control.  Switches are multi-position nulls which rest at zero on the Z axis and can moved in one meter increments along Z to select various option. Select between the options by moving the respective null to 1, 2, 3... meters on the Z axis.  The number of options for each null will determine the number of possible positions for the null. Distance Nulls find the distance from some point of reference to the position of the null.

Most nulls use a position relative to 0,0,0 in world coordinates.  The exceptions are "FocalPoint" and "FocalRange".  "FocalPoint" is relative to the camera and "FocalRange" is relative to "FocalPoint" and must be parented to "FocalPoint".

***************** NULLS DETAILS *****************

RGB
*******************************
 Red%			Slider	(0-200)
 Green%			Slider	(0-200)
 Blue%			Slider	(0-200)
 ColorMode		Switch	(0=Multiply, 1=Additive, 2=Replace)

Normally, the RGB effects are done by multiplying the color value of each pixel by the percentage requested.  This has the effect of controlling color without disturbing shadows.  Using the ColorMode null, you can access two other types of color control.  Move the ColorMode null to one meter on the Z axis to switch from using multiplication to using addition for color correction.  When using additive color correction, the no-effect position for each null is zero.  As you raise the values, that much of the corresponding color is added to the selected areas of your image. This has the effect of affecting each pixel equally, even the shadows. Move the ColorMode null to two meters on the Z axis to switch to color replacement mode.  This mode replaces all selected parts of the image with the selected color.

**Common Uses
Composite color correction: Use multiple WaveFilters, one to affect objects only, one set for background only and another set for full frame, to master compositing.  Also, ambient radiosity, such as the green found in a dense jungle scene, can be added without blowing out shadows as it would using ambient light alone.
Color Effects: Moving the "Red%", "Green%" and "Blue%" nulls wildly can give some interesting "Chroma Effects" style looks.
Green Screen Clean-up: Select the color range that defines the portion of the image to remove (key out).  Then activate color replacement mode and set the "Red%", "Green%" and "Blue%" nulls to the correct Z positions to represent your perfect green screen color.

BGC
*******************************
 Bright%		Slider	(0-200)
 Gamma%			Slider	(0-200)
 Contrast%		Slider	(0-200)

**Common Uses
Fade To Black: Moving the "Bright%" null from 100 to 0 on the Z axis over 30 frames results in a 30 frame fade to black.  Do the opposite to fade from black. 
Composite image correction: Often correcting image BGC can greatly improve your image.


BLUR
*******************************
 Blur%			Slider	(0-1000)
 Softer			Switch	(0=Normal, 1=Softer)
 DOFBlur%		Slider	(0-1000)
 MaxDOFBlur%		Slider	(0-1000)
 FocalPoint		Distance
 FocalRange		Distance
 DOFSeperator		Slider	(0.01-10)

The "Softer" null selects which of the two types of blur and DOF blur are used.  If the Z axis value of this null equals zero then the fast blur is applied.  If the Z axis value equals one then a softer blur is applied.  Use the softer blur when objects in your scene will change levels of blur for a smooth transition from blurry to sharply focused.

			DOFBlur% per meter
                         ^
                         |
                         |
                     ....FR....(Far)                        
                 ....          ....
\            ....                  ....            /
  \      ....                          ....      / 
    \....                FP                ..../
 .... \                                      / ....
.       \                                  /       ....
          \          ..........(Near)    /
            \    ....    |     ....    /
             .\..        |         ../.
         ....   \        v         /   ....
     ....         \   DOFBlur%   /         ....
                    \          /
                      \      /
   	 	       Camera

DOF Blur uses five nulls for complete control of the effect.  The first two nulls are called "FocalPoint" and "FocalRange".  "Focal Point" marks the distance from the camera which will be the center of the area which will be in perfect focus.  "FocalRange" marks the distance from the "FocalPoint" which will be the edge of the area which will be in perfect focus.  "FocalRange" must be parented to "FocalPoint".

This information is used to find the near and far edges of perfect focus.  From the far edge, going towards infinity, blur is added at the rate specified either on the options panel using "DOF Blur %" or by using the Z axis value of a "DOFBlur%" null in the scene.  An object one meter past the far edge will be blurred the percent selected, at two meters twice that much blur and so on...  

The same idea holds true as you move closer to the camera from the near edge.  As you move away from the near edge and toward the camera, the amount of blur increases per meter as specified.

The amount of blur per meter will increase, both near and far, as specified, until it reaches the level specified using the Z axis value of the "MaxDOFBlur%" null.  Because greater amounts of blur take greater amounts of time to render, this null can be very useful for controlling render times.  If a "MaxDOFBlur%" null is not found in the scene, then a value of 140% is used. 
See the "FiltersShouldAffect" null for setting to allow DOF blur to only affect the near or far portions of the scene.

The "DOFSeperator" null allows objects to self blur.  One rule in DOF blur is that far objects can not blur over near objects. This can cause a problem because if the rule is followed exactly, then objects will not self blur correctly.  Nearer parts of the objects will blur over further parts, but further parts will not blur over nearer parts as they should. To avoid this challenge, "DOFSeperator" was added.  Set "DOFSeperator" to allow objects to self blur correctly.  Usually the default setting of 0.4 meters works well, but if your objects are very large or very small, you may need to adjust this null.  The value returned by "DOFSeperator" allows portions of your objects as far behind the area in question as the distance specified by "DOFSeperator" to blur correctly.

Load the "DOFChess.lws" to see the nulls in action.  Try moving each null to see the affect of each on the scene.  Experimenting is the best way to learn.

With DOF, often less is more.  A strong blur distracts the eye while a gentle blur is soft to the eye and allows the eye to find the focal point gently.  Using low levels of blur also helps control rendering times.

**Common Uses
Rack Focus: Simply move the "FocalPoint" null from one object to another over the number of frames you wish for the effect.  This effect works best when object two is originally visibly blurry. Use the "Focal Point" to direct the viewers eye where you wish it to go.  
Volumetric Fog or Dust: Blur single point polygons created in your favorite particle animation system.
Foreground Attention: Blur the background about 40 percent to really bring out the foreground objects.
Blur Transition:  In scene one, increase blur over several frames untill the image is no longer recognizable. In scene two, start with the ending value of blur in scene one and over a few frames return to normal focus.

ENHANCE
*******************************
 Enhance%		Slider	(0-200)
 AntialiasPasses	Switch	(1-4, >4 is edge blur)
 Antialias%		Slider	(0=Mark Affected, 1-200)
 AntialiasT		Slider	(0-200)

The "AntialiasPasses" null controls how many times each pixel is antialiased by WaveFilter.  Some images have edges that require very little antialising as well as very sharp edges that need alot of Antialising.  Setting "AntialiasPasses" to a number greater than one causes several  passes where "Antialias%" is applied as "Antialias%" / "AntialiasPasses".  The net result is the same amount of antialiasing as with a single pass, but because edges are found each pass, edges that needed very little antialiasing are skipped on later passes but edges which are very rough recieve antialiasing every pass.

"AntialiasPasses" can also be set above 4 passes and if "Antialias%" and "AntialiasT" are both set high, an edge blur can be achived.

**Common Uses
Speed Rendering: Raise your LightWave antialias threshold to the highest number that gives a good medium antialias render.  Then set LightWave antialias to low and move the "Antialias%" and "AntialiasT" nulls to 100 on the z axis.  The results should be similar to the original medium quality but much faster.
Improve old renderings: WaveFilter can be applied to previously rendered frames by running the image sequence as the background image and using WaveFilter filters.

NOISE
*******************************
 Noise%			Slider	(0-100)
 ChromaNoise		Switch	(0=Luminance Noise, 1=Chroma Noise)
 NoiseRed%		Slider	(0-100)	
 NoiseGreen%		Slider	(0-100)
 NoiseBlue%		Slider	(0-100)

The ChromaNoise null switches the noise from luminance noise, the default, when the null is at zero in the Z axis to Chroma noise when the null is at one in the Z axis. The maximum strength of the Chroma Noise in each color channel can be controlled using three nulls named "NoiseRed%", "NoiseGreen%" and "NoiseBlue%".  

**Common Uses
Grain: Set the levels to generate the look of many types of gain found in film or video.
TV Interference: Animating the effect can generate an excellent TV interference look.

FILTER
*******************************
 Posterize%		Slider	(0-255)
 NTSCLimit		Switch	(0=No Limit, 1=NTSC Limit)
 BlackandWhite		Switch	(0=Color, 1=B&W)
 Negative		Switch	(0=Positive, 1=Negative)
 FlipFrame		Switch	(0=Normal, 1=Horz, 2=Vert)


AFFECT
*******************************
 FiltersShouldAffect	Switch	(0=Full Frame, 1=Background Only, 2=Objects Only,
				3=Shadows Only, 4=Color Range,
				5=DOF Blur Near Range Only,
				6=DOF Blur Far Range Only)
 HighRed		Slider	(0-255)
 HighGreen		Slider	(0-255)
 HighBlue		Slider	(0-255)
 LowRed			Slider	(0-255)
 LowGreen		Slider	(0-255)
 LowBlue		Slider	(0-255)

Position this null to control which portion of the image are affected by the filter.  This null is rarely animated, but is available to avoid needing to open the control panel to change this setting.

The color range for "Color Range Only" can be controlled using the "HighRed", "HighGreen", "HighBlue", "LowRed", "LowGreen" and "LowBlue" nulls. This allows the color range to be adjusted each frame to best represent the range of colors that should be keyed out.  Use all four WaveFilters to allow four seperate color ranges to be used to key each frame.  

