C# Class Axiom.Demos.WaterMesh

WaterMesh implements the water simulation.
Datei anzeigen 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_oe property

protected float ANIMATIONS_PER_SECOND
return float

HwBufMgr protected_oe static_oe property

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

PARAM_C public_oe property

public float PARAM_C
return float

PARAM_D public_oe property

public float PARAM_D
return float

PARAM_T public_oe property

public float PARAM_T
return float

PARAM_U public_oe property

public float PARAM_U
return float

cmplx protected_oe property

protected int cmplx
return int

cmplxAdj protected_oe property

protected float cmplxAdj
return float

curBufNum protected_oe property

protected int curBufNum
return int

fNorms protected_oe property

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

lastAnimationTimeStamp protected_oe property

protected float lastAnimationTimeStamp
return float

lastFrameTime protected_oe property

protected float lastFrameTime
return float

lastTimeStamp protected_oe property

protected float lastTimeStamp
return float

mesh protected_oe property

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

meshName protected_oe property

protected String meshName
return String

normVBuf protected_oe property

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

numFaces protected_oe property

protected int numFaces
return int

numVertices protected_oe property

protected int numVertices
return int

posVBuf protected_oe property

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

size protected_oe property

protected float size
return float

subMesh protected_oe property

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

tcVBuf protected_oe property

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

useFakeNormals public_oe property

public bool useFakeNormals
return bool

vBuf protected_oe property

protected Vector3[,] vBuf
return ].Vector3[

vBufs protected_oe property

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

vNorms protected_oe property

protected Vector3[,] vNorms
return ].Vector3[