iWaveOcean
3ds Max ocean simulation plugin
Dynamics Class Reference

#include <Dynamics.h>

Public Member Functions

 Dynamics (int startFrame, float width, float length, int widthSegs, int lengthSegs, float heightScale, float dt, float alpha, float sigma, float wakePower, INode *parentNode, INode **collisionNodes, int numCollisionNodes, Grid *ambient)
 
GridNextGrid ()
 

Detailed Description

Represents the dynamical simulation of ocean waves using the iWave method.

Constructor & Destructor Documentation

Dynamics::Dynamics ( int  startFrame,
float  width,
float  length,
int  widthSegs,
int  lengthSegs,
float  heightScale,
float  dt,
float  alpha,
float  sigma,
float  wakePower,
INode *  parentNode,
INode **  collisionNodes,
int  numCollisionNodes,
Grid ambient 
)

Constructs a new Ocean object.

Parameters
startFramethe first frame number
widththe width of the plane
lengththe length of the plane
widthSegsthe number of faces along the X-axis
lengthSegsthe number of faces along the Y-axis
heightScalea factor that scales the height of the waves
dtthe difference in time between frames (e.g. for 24 fps, a normal dt is 1/24)
alphathe wave damping factor; 0.2 <= alpha <= 0.4, suggested is 0.3
sigmathe Gaussian smoothing factor; sigma > 0.0, suggested is 1.0
wakePowerthe strength of an object's wake; wavePower >= 1.0, suggested is 2.0
parentNodethe node hosting the wave simulation
collisionNodesthe nodes creating collisions and dynamics in the water
numCollisionNodesthe size of the collisionNodes array
ambientan ambient wave simulation

Member Function Documentation

Grid * Dynamics::NextGrid ( )

Advances the simulation one step and returns the resultant grid. The Grid returned needs to be destroyed once it is unused; the Ocean object relinquishes responsibility for this pointer.


The documentation for this class was generated from the following files: