Advanced SPS2 Demos - Files


Summary |  Source |  Files | 
Notes

Release Name: 1.0 [Download]

Notes:
Wobble demo 

Perturbates a surface along its normal and then perturbs the normals (to be used with reflections and/or lighting)

For position perturbance the formula is as follows:
f = POSAmplitude * sin (2 * PI / Period * (SimulationTime - TexCoordU * USpeed - TexCoordV * VSpeed);
P = P + N * f;

For normals perturbance the formula is as follows:
f = NORAmplitude * sin (2 * PI / Period * (SimulationTime - TexCoordU * USpeed - TexCoordV * VSpeed);
N.x = N.x + f;

You can edit the effect settings by modifying the input.dat file
the default input.dat file is as follows:

teapot    <- the base name of the mesh
2.0       <- the speed in the U direction
2.0       <- the speed in the V direction
2.0       <- the position amplitude
0.07      <- the normal amplitude
2.0       <- the period of the wobble function


Note:
   This effect is based on a sine function and uses as phase the texture coordinates. So cracks will apear when the texture is not continous (this does not mean when a texture is tiled, unless the U and V speed are not multiples of the period). 

Extra commands:
 
* select button switches to wireframe, 
* start button switches the texture on/off

* left analog stick moves in the x/y plane
* L1/L2 moves in the z direction
* right analog stick rotates


Have fun with it ;)


Changes: