The 'ppeffectlist' property is a camera property. Each individual camera can have its own 'ppeffectlist'. Note that overlays of the camera will not be considered for Post-processing effects.
myppeffectlist = sprite(1).camera(1).ppeffectlist
The Post-processing effects make use of the following common variables:
Adobe Director 12 provides the following new post-processing effects:
This function is used to create a new Post-Processing Effect Object. The type of Post-Processing effect returned is determined by the parameter 'ppEffectSymbol'.
ppEffectObjRef = newppeffect(ppEffectSymbol)
The ppEffectSymbol has to be any one of the following values:
ppColor = newppeffect(#ppadjustcolor) ppColor.adjustcolormatrix= myMatrix ee = sprite(me.spriteNum).camera(1).ppeffectlist ee.append(ppColor)
You can use Convolution filter to apply a wide range of imaging transformations, such as blurring, edge detection, sharpening, embossing, and beveling.
The values for achieving these transformations must be specified using a three by three matrix as follows:
myList = [0, 1, 0, 1, -4, 1, 0, 1, 0] myMatrix = newMatrix(3,3,myList) pp = newppeffect(#ppconvolution) pp.convolutionmatrix = myMatrix ee = sprite(me.spriteNum).camera(1).ppeffectlist ee.append(pp)
ppColor = newppeffect(#ppadjustcolor) ppColor.adjustcolormatrix= myMatrix ee = sprite(me.spriteNum).camera(1).ppeffectlist ee.append(ppColor)
You can use the Adjust color filter to edit a scene’s brightness, contrast, saturation, and hue. The Adjust-Color Filter effect lets you apply a 3 x 4 matrix transformation on the RGB color of every pixel in the input image to produce a result with a new set of RGB color.
Here are the matrix values you can use for different colors:
myList = [ 0,0,0,0, 0,1,0,0, 0,0,0,0] myMatrix = newMatrix(3,4,myList) pp = newppeffect(#ppadjustcolor) pp.adjustcolormatrix= myMatrix ee = sprite(me.spriteNum).camera(1).ppeffectlist ee.append(pp)
Blur motion effect causes blurring of objects in motion. Blurring is dependent on the velocity of the object.
You can apply blur motion effect to:
Property:
3Dmember.camera(1).blurmotion = true
Property:
pSphere.blurmotion = true
By default, blur motion effect is disabled for all models and cameras. Blur motion effect applied to a camera overrides the effect applied to a model.
pp = newppeffect(#ppblurmotion) pp.blurconst = 0.08 ee = sprite(me.spriteNum).camera(1).ppeffectlist ee.append( pp ) pSphere.blurmotion = true -- enable Blur-Motion in Sphere p3Dmember.camera(1).blurmotion = true --enable Blur-Motion on Camera
The Bloom Post-processing Effect is used to bloom the screen. This effect makes bright areas appear brighter.
pp = newppeffect (#ppbloom) pp.bloomthreshold = 0.1 pp.baseintensity = 1 pp.bloomintensity = 2 pp.basesaturation = 1 pp.bloomsaturation = 1 pp.blurX = 5 pp.blurY = 1 ee = sprite(me.spriteNum).camera(1).ppeffectlist ee.append(pp)
You can specify up to seven input textures and corresponding operations to blend them at run-time on the scene and create different effects.
pp = newppeffect(#ppblendtextures) pp.texturelist = mytexturelist –- supports upto 7 textures mytexturelist.append(tex1) mytexturelist.append(tex2) mytexturelist.append(tex3) pp.oplist = myoperationlist –- supports upto 7 operations myoperationlist.append(“add”) myoperationlist.append(“subtract) myoperationlist.append(“multiply”) ee = sprite(me.spriteNum).camera(1).ppeffectlist ee.append( pp )
You can also create effects such as masking and stereoscopy in Lingo using this feature.
Depth of Field is the distance between the nearest and farthest objects in a scene that appear acceptably sharp in an image (from Wikipedia).
You can use depth of field to emphasize a specific object or a model while blurring or de-emphasizing other objects in the foreground and background.
pp = newppeffect(#ppdepthoffield) pp.depthstart = 20 pp.depthrange = 20 pp.blurconst=5 ee = sprite(me.spriteNum).camera(1).ppeffectlist ee.append(pp)
The Night Vision filter helps you to replicate a night vision goggles scene by specifying brightness, red/blue/green coloring in the scene. You can also use two textures for adding shadows and noise to the scene.
pp = newppeffect(#ppnightvision) pp.brightness = 1.3 pp.greenBias = 0.7 pp.texturelist = [shadow,noise] –- supports two textures --By default, opacity of both set to 1 ee = sprite(me.spriteNum).camera(1).ppeffectlist ee.append(pp)
Specify the values for redbias, greenbias, and floatbias in float.
Sign in to your account