PostProcess
After Effects.
initScatterFog
Scatter fog, please refer to the example 3D Scene Scatter Fog Settings for details.
Parameters
| Name | Type | Description | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| map | Map | Requiredmap instance. | ||||||||||||||||||||||||||||
| option | Object | optionalparameter
|
Case
//Initialize scattering fog
let pvFog = mapmost.PostProcessStageLibrary.initScatterFog(map);
//Add to scene
map.addPostProcess(pvFog);
Instance members
sunDir
Set the sun position in the format of Array<number>. Default value [1,1,1], range of each element: [-1,1].
Case
let pvFog = mapmost.PostProcessStageLibrary.initScatterFog(map);
map.addPostProcess(pvFog);
// sun position
pvFog.sunDir = [1, 1, 1];
fogColor
Set the fog color in the format of Array<number>. Default value [0.5,0.6,,0.7], each element range: [0,1].
Case
let pvFog = mapmost.PostProcessStageLibrary.initScatterFog(map);
map.addPostProcess(pvFog);
// fog color
pvFog.fogColor = [0.5, 0.6, 0.7];
yellow
Set the scattering color in the format of Array<number>. Default value [1.0,0.9,0.7], range of each element: [0,1].
Case
let pvFog = mapmost.PostProcessStageLibrary.initScatterFog(map);
map.addPostProcess(pvFog);
// scattering color
pvFog.yellow = [1.0, 0.9, 0.7];
maxDis
Set the maximum distance of scattering fog, the format is number. Default value is 1000, range: [0,3000].
Case
let pvFog = mapmost.PostProcessStageLibrary.initScatterFog(map);
map.addPostProcess(pvFog);
//maximum distance
pvFog.maxDis = 3000;
fogIndensity
Set the concentration of scattering fog, the format is number. The default value is 1, and the value is greater than 0.
Case
let pvFog = mapmost.PostProcessStageLibrary.initScatterFog(map);
map.addPostProcess(pvFog);
//concentration
pvFog.fogIndensity = 1;
enabled
Set the scattering fog on/off status, the format is boolean. The default value is true.
Case
let pvFog = mapmost.PostProcessStageLibrary.initScatterFog(map);
map.addPostProcess(pvFog);
//Set the scattering fog on and off status
pvFog.enabled = true;
initHaloSun
Halo, please refer to the example 3D Scene Halo Settings for details.
Parameters
| Name | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| map | Map | Requiredmap instance. | ||||||||||||||||||||
| option | Object | optionalparameter
|
Case
//Initialize the glow
let pvGY = mapmost.PostProcessStageLibrary.initHaloSun(map);
//Add to scene
map.addPostProcess(pvGY);
Instance members
sunDir
Set the sun position in the format of Array<number>. Default value [1,1,1], range of each element: [-1,1].
Case
let pvGY = mapmost.PostProcessStageLibrary.initHaloSun(map);
map.addPostProcess(pvGY);
// sun position
pvGY.sunDir = [1, 1, 1];
sunColor
Set the halo color, the format is Array<number>. Default value [1.0,1.0,0.9], range of each element: [0,1].
Case
let pvGY = mapmost.PostProcessStageLibrary.initHaloSun(map);
map.addPostProcess(pvGY);
// halo color
pvGY.sunColor = [0.5, 0.6, 0.7];
sunBrightness
Set the halo intensity, the format is number. Default value 1, range: [0,1].
Case
let pvGY = mapmost.PostProcessStageLibrary.initHaloSun(map);
map.addPostProcess(pvGY);
// halo intensity
pvGY.sunBrightness = 1;
enabled
Set the halo on/off status, the format is boolean. The default value is true.
Case
let pvGY = mapmost.PostProcessStageLibrary.initHaloSun(map);
map.addPostProcess(pvGY);
//Set the halo on and off status
pvGY.enabled = true;
initSharpen
Sharpening, please refer to the example 3D scene sharpening settings for details.
Parameters
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| map | Map | Requiredmap instance. | ||||||||||||
| option | Object | optionalparameter
|
Case
//Initialize sharpening
let sharpenPost = mapmost.PostProcessStageLibrary.initSharpen(map);
//Add to scene
map.addPostProcess(sharpenPost);
Instance members
sharpNum
Set the sharpening intensity, the format is number. The default value is 0.12, and the value is greater than 0.
Case
let sharpenPost = mapmost.PostProcessStageLibrary.initSharpen(map);
map.addPostProcess(sharpenPost);
//sharpening strength
sharpenPost.sharpNum = 0.12;
enabled
Set sharpening on/off status, the format is boolean. The default value is true.
Case
let sharpenPost = mapmost.PostProcessStageLibrary.initSharpen(map);
map.addPostProcess(sharpenPost);
//Set sharpening on and off
sharpenPost.enabled = true;
initColorAdjust
Color adjustment, please refer to the example 3D scene color adjustment for details.
Parameters
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| map | Map | Requiredmap instance. | ||||||||||||||||||||||||
| option | Object | optionalparameter
|
Case
//Initialize color adjustment
let pvBHD = mapmost.PostProcessStageLibrary.initColorAdjust(map);
//Add to scene
map.addPostProcess(pvBHD);
Instance members
saturation
Set the saturation, the format is number. Default value 1, range: [-1,1].
Case
let pvBHD = mapmost.PostProcessStageLibrary.initColorAdjust(map);
map.addPostProcess(pvBHD);
// saturation
pvBHD.saturation = 1;
lightness
Set the brightness, the format is number. Default value 1, range: [0,1].
Case
let pvBHD = mapmost.PostProcessStageLibrary.initColorAdjust(map);
map.addPostProcess(pvBHD);
// brightness
pvBHD.lightness = 1;
contrast
Set the contrast, the format is number. Default value 0, range: [-1,1].
Case
let pvBHD = mapmost.PostProcessStageLibrary.initColorAdjust(map);
map.addPostProcess(pvBHD);
// contrast
pvBHD.contrast = 0;
gamma
Set the gamma value in the format of number. The default value is 1, and the value is greater than 0.
Case
let pvBHD = mapmost.PostProcessStageLibrary.initColorAdjust(map);
map.addPostProcess(pvBHD);
//gamma value
pvBHD.gamma = 1;
enabled
Set the color adjustment on/off status, the format is boolean. The default value is true.
Case
let sharpenPost = mapmost.PostProcessStageLibrary.initSharpen(map);
map.addPostProcess(sharpenPost);
//Set color adjustment on and off status
pvBHD.enabled = true;