9.40 Snow
Superimposes a particle effect simulating falling snow on to the scene. The snow particle is given as a small image, typically a 50x50 png file (transparency supported).
9.40.1 Parameters
| Parameters |
| Default |
| Range |
| Description |
| ParticleImage |
| - |
| n/a |
| The full path of the particle image. Specifying this parameter is mandatory. |
|
|
|
| ||||
| NumParticles |
| 500 |
| > 0 |
| The number of particles present at any given time |
|
|
|
| ||||
| ParticleSize |
| 0.04 |
| > 0 |
| The normalized size of the particle with respect to the screen |
|
|
|
| ||||
| ParticleAvgDurationSecs |
| 5.0 |
| > 0 |
| The duration of each particle measured in seconds |
|
|
|
| ||||
| Alpha |
| 0.7 |
| [0.0,1.0] |
| The transparency of each particle. This parameter can be animated with a nice fade-in and fade-out effect |
|
|
|
| ||||
| Motion |
| 2 |
| {0,1,2,3} |
|
|
|
|
|
| ||||
| ParticleFlicker |
| 1 |
| {0,1} |
| If set to 1, the size of the particles will vary slightly as it falls down. Else the various particle size will remain static. Do note that the initial particle size is itself slightly randomized so that particle sizes are different at creation time |
9.40.2 Examples
9.40.2.1 Adding snow particles on top of the user image
.
; muSE v2 ; ; My super awesome style. ; It adds snow on top of our user image. (style-parameters) (segment-durations 8.0) (define muvee-global-effect (effect-stack (effect "CropMedia" (A)) (effect "Perspective" (A)) (layers (A) A (effect "Snow" () (param "ParticleImage" (resource "SnowParticle.png"))))))
The snow image "SnowParticle.png" that we provided to the effect is displayed below -
9.40.2.2 GreenPepper example
The example is an abuse of the snow effect :) There is nothing that is preventing us from adding a completely different image of our own liking to the snow effect. In this example, I have added a small green pepper image to the snow effect.
; muSE v2 ; ; My somewhat funny style. ; Adding falling green peppers on top of our user image. (style-parameters) (segment-durations 8.0) (define muvee-global-effect (effect-stack (effect "CropMedia" (A)) (effect "Perspective" (A)) (layers (A) A (effect "Snow" () (param "ParticleImage" (resource "GreenPepper.png")) (param "Motion" 0) (param "ParticleFlicker" 0) (param "Alpha" 0.98) (param "ParticleSize" 0.1)))))
The snow image "GreenPepper.png" that we provided to the effect is displayed below -