C# Class Axiom.Demos.WaterMesh

WaterMesh implements the water simulation.
Show file Open project: WolfgangSt/axiom Class Usage Examples

Public Properties

Property Type Description
PARAM_C float
PARAM_D float
PARAM_T float
PARAM_U float
useFakeNormals bool

Protected Properties

Property Type Description
ANIMATIONS_PER_SECOND float
HwBufMgr Axiom.Graphics.HardwareBufferManager
cmplx int
cmplxAdj float
curBufNum int
fNorms Vector3[,,]
lastAnimationTimeStamp float
lastFrameTime float
lastTimeStamp float
mesh Axiom.Core.Mesh
meshName String
normVBuf Axiom.Graphics.HardwareVertexBuffer
numFaces int
numVertices int
posVBuf Axiom.Graphics.HardwareVertexBuffer
size float
subMesh Axiom.Core.SubMesh
tcVBuf Axiom.Graphics.HardwareVertexBuffer
vBuf ].Vector3[
vBufs ].Vector3[][
vNorms ].Vector3[

Public Methods

Method Description
CalculateFakeNormals ( ) : void

Calculate Fake Normals (close but not precise, but faster)

CalculateNormals ( ) : void

Calculate WaterMesh precise Normals for each Vertex on Grid

Push ( float fx, float fy, float depth, float height, float speed, bool absolute ) : void

Emulates an object pushing water out of its way (usually down)

PushDown ( float fx, float fy, float depth ) : void

Emulates an object pushing water out of its way (usually down)

UpdateMesh ( float timeSinceLastFrame ) : void
WaterMesh ( String meshName, float planeSize, int cmplx ) : System

Method Details

CalculateFakeNormals() public method

Calculate Fake Normals (close but not precise, but faster)
public CalculateFakeNormals ( ) : void
return void

CalculateNormals() public method

Calculate WaterMesh precise Normals for each Vertex on Grid
public CalculateNormals ( ) : void
return void

Push() public method

Emulates an object pushing water out of its way (usually down)
public Push ( float fx, float fy, float depth, float height, float speed, bool absolute ) : void
fx float
fy float
depth float
height float
speed float
absolute bool
return void

PushDown() public method

Emulates an object pushing water out of its way (usually down)
public PushDown ( float fx, float fy, float depth ) : void
fx float
fy float
depth float
return void

UpdateMesh() public method

public UpdateMesh ( float timeSinceLastFrame ) : void
timeSinceLastFrame float
return void

WaterMesh() public method

public WaterMesh ( String meshName, float planeSize, int cmplx ) : System
meshName String
planeSize float
cmplx int
return System

Property Details

ANIMATIONS_PER_SECOND protected property

protected float ANIMATIONS_PER_SECOND
return float

HwBufMgr protected static property

protected static HardwareBufferManager,Axiom.Graphics HwBufMgr
return Axiom.Graphics.HardwareBufferManager

PARAM_C public property

public float PARAM_C
return float

PARAM_D public property

public float PARAM_D
return float

PARAM_T public property

public float PARAM_T
return float

PARAM_U public property

public float PARAM_U
return float

cmplx protected property

protected int cmplx
return int

cmplxAdj protected property

protected float cmplxAdj
return float

curBufNum protected property

protected int curBufNum
return int

fNorms protected property

protected Vector3[,,] fNorms
return Vector3[,,]

lastAnimationTimeStamp protected property

protected float lastAnimationTimeStamp
return float

lastFrameTime protected property

protected float lastFrameTime
return float

lastTimeStamp protected property

protected float lastTimeStamp
return float

mesh protected property

protected Mesh,Axiom.Core mesh
return Axiom.Core.Mesh

meshName protected property

protected String meshName
return String

normVBuf protected property

protected HardwareVertexBuffer,Axiom.Graphics normVBuf
return Axiom.Graphics.HardwareVertexBuffer

numFaces protected property

protected int numFaces
return int

numVertices protected property

protected int numVertices
return int

posVBuf protected property

protected HardwareVertexBuffer,Axiom.Graphics posVBuf
return Axiom.Graphics.HardwareVertexBuffer

size protected property

protected float size
return float

subMesh protected property

protected SubMesh,Axiom.Core subMesh
return Axiom.Core.SubMesh

tcVBuf protected property

protected HardwareVertexBuffer,Axiom.Graphics tcVBuf
return Axiom.Graphics.HardwareVertexBuffer

useFakeNormals public property

public bool useFakeNormals
return bool

vBuf protected property

protected Vector3[,] vBuf
return ].Vector3[

vBufs protected property

protected Vector3[][,] vBufs
return ].Vector3[][

vNorms protected property

protected Vector3[,] vNorms
return ].Vector3[