SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
SLParticleSystem creates a particle meshes from a point primitive buffer. More...
#include <SLParticleSystem.h>
Private Member Functions | |
SLVec3f | getPointInSphere (float radius, SLVec3f randomX) |
Function which return a position in a sphere. More... | |
SLVec3f | getPointOnSphere (float radius, SLVec3f randomX) |
Function which return a position on a sphere. More... | |
SLVec3f | getDirectionSphere (SLVec3f position) |
Function which return the direction towards the exterior of a sphere. More... | |
SLVec3f | getPointInBox (SLVec3f boxScale) |
Function which return a position in a box. More... | |
SLVec3f | getPointOnBox (SLVec3f boxScale) |
Function which return a position on a box. More... | |
SLVec3f | getDirectionBox (SLVec3f position) |
Function which return the direction towards the exterior of a box. More... | |
SLVec3f | getPointInCone () |
Function which return a position in the cone define in the particle system. More... | |
SLVec3f | getPointOnCone () |
Function which return a position on the cone define in the particle system. More... | |
SLVec3f | getDirectionCone (SLVec3f position) |
Function which return a direction following the cone shape. More... | |
SLVec3f | getPointInPyramid () |
Function which returns a position in the pyramid that define the PS. More... | |
SLVec3f | getPointOnPyramid () |
Function which return a position on the pyramid that defines the PS. More... | |
SLVec3f | getDirectionPyramid (SLVec3f position) |
Function which return a direction following the pyramid shape. More... | |
Private Attributes | |
SLAssetManager * | _assetManager |
pointer to the asset manager (the owner) if available More... | |
SLint | _amount |
Amount of a particle. More... | |
SLVec3f | _emitterPos |
Position of the particle emitter. More... | |
SLfloat | _timeToLive |
Time to live of a particle. More... | |
SLfloat | _radiusW = 0.4f |
width radius of a particle More... | |
SLfloat | _radiusH = 0.4f |
height radius of a particle More... | |
SLfloat | _scale = 1.0f |
Scale of a particle (Scale the radius) More... | |
SLVec4f | _bernsteinPYAlpha = SLVec4f(2.0f, -3.0f, 0.0f, 1.0f) |
Vector for bezier curve (default linear function) More... | |
float | _bezierControlPointAlpha [4] = {0.0f, 1.0f, 1.0f, 0.0f} |
Floats for bezier curve control points (P1: 01 ; P2: 23) More... | |
float | _bezierStartEndPointAlpha [4] = {0.0f, 1.0f, 1.0f, 0.0f} |
Floats for bezier curve end start points (Start: 01 ; End: 23) More... | |
SLVec4f | _bernsteinPYSize = SLVec4f(-1.4f, 1.8f, 0.6f, 0.0f) |
Vector for bezier curve (default linear function) More... | |
float | _bezierControlPointSize [4] = {0.0f, 0.0f, 1.0f, 1.0f} |
Floats for bezier curve control points (P1: 01 ; P2: 23) More... | |
float | _bezierStartEndPointSize [4] = {0.0f, 0.0f, 1.0f, 1.0f} |
Floats for bezier curve end start points (Start: 01 ; End: 23) More... | |
SLVec3f | _acceleration = SLVec3f(1, 1, 1) |
Vector for acceleration (different direction as the velocity) More... | |
SLfloat | _accelerationConst = 0.0f |
Acceleration constant (same direction as the velocity) More... | |
SLVec3f | _gravity = SLVec3f(0.0f, -9.81f, 0.0f) |
Vector for gravity (2nd. acceleration vector) More... | |
SLVec3f | _velocityConst = SLVec3f(0, 1, 0) |
Velocity constant (go in xyz direction) More... | |
SLVec3f | _velocityRndMin = SLVec3f(-1, -1, -1) |
Min. random velocity. More... | |
SLVec3f | _velocityRndMax = SLVec3f(1, 1, 1) |
Max. random velocity. More... | |
SLVec3f | _direction = SLVec3f(0, 0, 0) |
Direction of particle. More... | |
SLfloat | _speed = 1.0f |
Speed of particle. More... | |
SLVec2f | _speedRange = SLVec2f(1, 2) |
Speed random between two value. More... | |
SLCol4f | _color = SLCol4f(0.66f, 0.0f, 0.66f, 0.2f) |
Color for particle. More... | |
int | _drawBuf = 0 |
Boolean to switch buffer. More... | |
int | _flipbookFPS = 16 |
Number of update of flipbook by second. More... | |
float | _flipboookLastUpdate = 0.0f |
Last time flipbook was updated. More... | |
SLint | _flipbookColumns = 8 |
Number of flipbook sub-textures by column. More... | |
SLint | _flipbookRows = 8 |
Number of flipbook sub-textures by row. More... | |
AvgFloat | _updateTime |
Averaged time for updating in MS. More... | |
AvgFloat | _drawTime |
Averaged time for drawing in MS. More... | |
SLfloat | _startDrawTimeMS = 0.0f |
Time since start of draw in MS. More... | |
SLfloat | _startUpdateTimeMS = 0.0f |
Time since start for updating in MS. More... | |
SLfloat | _startUpdateTimeS = 0.0f |
Time since start for updating in S. More... | |
SLfloat | _deltaTimeUpdateS = 0.0f |
Delta time in between two frames S. More... | |
SLfloat | _notVisibleTimeS = 0.0f |
Time since start when node not visible in S. More... | |
SLfloat | _lastTimeBeforePauseS = 0.0f |
Time since the particle system is paused. More... | |
SLfloat | _shapeRadius = 1.0f |
Radius of sphere and cone shape. More... | |
SLVec3f | _shapeScale = SLVec3f(1.0f) |
Scale of box shape. More... | |
SLfloat | _shapeHeight = 3.0f |
Height of cone and pyramid shapes. More... | |
SLfloat | _shapeAngle = 10.0f |
Angle of cone and pyramid shapes. More... | |
SLfloat | _shapeWidth = 2.0f |
Width of pyramid shape. More... | |
SLfloat | _angularVelocityConst = 30.0f |
Rotation rate const (change in angular rotation divide by change in time) More... | |
SLVec2f | _angularVelocityRange = SLVec2f(-30.0f, 30.0f) |
Rotation rate range (change in angular rotation divide by change in time) More... | |
SLBillboardType | _billboardType = BT_Camera |
Billboard type (BT_Camera, BT_Vertical, BT_Horizontal. More... | |
SLShapeType | _shapeType = ST_Sphere |
Shape type (ST_) More... | |
SLint | _velocityType = 0 |
Velocity type. More... | |
SLGLTexture * | _texParticle |
Main texture of PS (non flipbook) More... | |
SLGLTexture * | _texFlipbook |
Flipbook texture with e.g. multiple flames at subsequent frames. More... | |
SLTexColorLUT * | _texGradient |
Color gradient texture. More... | |
SLGLVertexArray | _vao1 |
SLGLVertexArray | _vao2 |
SLGLVertexArray | _instanceVao1 |
SLGLVertexArray | _instanceVao2 |
SLbool | _isVisibleInFrustum = true |
Boolean to set time since node not visible. More... | |
SLbool | _isPaused = false |
Boolean to stop updating. More... | |
SLbool | _isGenerated = false |
Boolean to generate particle system and load it on the GPU. More... | |
SLbool | _doBlendBrightness = false |
Boolean for glow/brightness on pixel with many particle. More... | |
SLbool | _doDirectionSpeed = false |
Boolean for direction and speed (override velocity) More... | |
SLbool | _doSpeedRange = false |
Boolean for speed range. More... | |
SLbool | _doCounterGap = true |
Boolean for counter lag/gap, can create flickering with few particle (explained in documentation) when enable. More... | |
SLbool | _doAcceleration = false |
Boolean for acceleration. More... | |
SLbool | _doAccDiffDir = false |
Boolean for acceleration (different direction) More... | |
SLbool | _doRotation = true |
Boolean for rotation. More... | |
SLbool | _doRotRange = false |
Boolean for rotation range (random value between range) More... | |
SLbool | _doColor = true |
Boolean for color. More... | |
SLbool | _doShape = false |
Boolean for shape feature. More... | |
SLbool | _doShapeSurface = false |
Boolean for shape surface (particle will be spawned on surface) More... | |
SLbool | _doShapeOverride = false |
Boolean for override direction for shape direction. More... | |
SLbool | _doShapeSpawnBase = false |
Boolean for spawn at base of shape (for cone and pyramid) More... | |
SLbool | _doWorldSpace = false |
Boolean for world space position. More... | |
SLbool | _doGravity = false |
Boolean for gravity. More... | |
SLbool | _doAlphaOverLT = true |
Boolean for alpha over life time. More... | |
SLbool | _doColorOverLT = false |
Boolean for color over life time. More... | |
SLbool | _doAlphaOverLTCurve = false |
Boolean for alpha over life time curve. More... | |
SLbool | _doSizeOverLT = true |
Boolean for size over life time. More... | |
SLbool | _doSizeOverLTCurve = false |
Boolean for size over life time curve. More... | |
SLbool | _doFlipBookTexture = false |
Boolean for flipbook texture. More... | |
SLbool | _doInstancedDrawing = false |
Boolean for instanced rendering. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from SLMesh | |
static void | calcTex3DMatrix (SLNode *node) |
Public Attributes inherited from SLMesh | |
SLVVec3f | P |
Vector for vertex positions layout (location = 0) More... | |
SLVVec3f | N |
Vector for vertex normals (opt.) layout (location = 1) More... | |
SLVVec2f | UV [2] |
Array of 2 Vectors for tex. coords. (opt.) layout (location = 2) More... | |
SLVCol4f | C |
Vector of vertex colors (opt.) layout (location = 4) More... | |
SLVVec4f | T |
Vector of vertex tangents (opt.) layout (location = 5) More... | |
SLVVuchar | Ji |
2D Vector of per vertex joint ids (opt.) layout (location = 6) More... | |
SLVVfloat | Jw |
2D Vector of per vertex joint weights (opt.) layout (location = 7) More... | |
SLVVec3f | skinnedP |
temp. vector for CPU skinned vertex positions More... | |
SLVVec3f | skinnedN |
temp. vector for CPU skinned vertex normals More... | |
SLVushort | I16 |
Vector of vertex indices 16 bit. More... | |
SLVuint | I32 |
Vector of vertex indices 32 bit. More... | |
SLVuint | IS32 |
Vector of rectangle selected vertex indices 32 bit. More... | |
SLVushort | IE16 |
Vector of hard edges vertex indices 16 bit (see computeHardEdgesIndices) More... | |
SLVuint | IE32 |
Vector of hard edges vertex indices 32 bit (see computeHardEdgesIndices) More... | |
SLVec3f | minP |
min. vertex in OS More... | |
SLVec3f | maxP |
max. vertex in OS More... | |
Protected Attributes inherited from SLMesh | |
SLGLPrimitiveType | _primitive |
Primitive type (default triangles) More... | |
SLMaterial * | _mat |
Pointer to the inside material. More... | |
SLMaterial * | _matOut |
Pointer to the outside material. More... | |
SLGLVertexArray | _vao |
Main OpenGL Vertex Array Object for drawing. More... | |
SLGLVertexArrayExt | _vaoN |
OpenGL VAO for optional normal drawing. More... | |
SLGLVertexArrayExt | _vaoT |
OpenGL VAO for optional tangent drawing. More... | |
SLGLVertexArrayExt | _vaoS |
OpenGL VAO for optional selection drawing. More... | |
SLbool | _isSelected |
Flag if mesh is partially of fully selected. More... | |
SLfloat | _edgeAngleDEG |
Edge crease angle in degrees between face normals (30 deg. default) More... | |
SLfloat | _edgeWidth |
Line width for hard edge drawing. More... | |
SLCol4f | _edgeColor |
Color for hard edge drawing. More... | |
SLfloat | _vertexPosEpsilon |
Vertex position epsilon used in computeHardEdgesIndices. More... | |
SLbool | _isVolume |
Flag for RT if mesh is a closed volume. More... | |
SLAccelStruct * | _accelStruct |
KD-tree or uniform grid. More... | |
SLbool | _accelStructIsOutOfDate |
Flag if accel. struct needs update. More... | |
SLAnimSkeleton * | _skeleton |
The skeleton this mesh is bound to. More... | |
SLVMat4f | _jointMatrices |
Joint matrix vector for this mesh. More... | |
SLbool | _isCPUSkinned |
Flag if mesh has been skinned on CPU during update. More... | |
SLVVec3f * | _finalP |
Pointer to final vertex position vector. More... | |
SLVVec3f * | _finalN |
pointer to final vertex normal vector More... | |
Protected Attributes inherited from SLObject | |
SLstring | _name |
name of an object More... | |
SLstring | _url |
uniform resource locator More... | |
SLParticleSystem creates a particle meshes from a point primitive buffer.
The SLParticleSystem mesh object of which the vertices are drawn as points. An OpenGL transform feedback buffer is used to update the particle positions on the GPU and a geometry shader is used the create two triangles per particle vertex and orient them as a billboard to the viewer. Geometry shaders are only supported under OpenGL >= 4.0 and OpenGLES >= 3.2. This is the case on most desktop systems and on Android SDK > 24 but not on iOS which has only OpenGL ES 3.0
. For all systems that don't support geometry shaders we use an alternative with instanced drawing (mainly for iOS and Emscripten with WebGL)
. The particle system supports many options of which many can be turned on the do* methods. All options can also be modified in the UI when the mesh is selected. See the different demo scenes in the app_demo_slproject under the demo scene group Particle Systems.
Definition at line 43 of file SLParticleSystem.h.
SLParticleSystem::SLParticleSystem | ( | SLAssetManager * | assetMgr, |
const SLint | amount, | ||
const SLVec3f & | velocityRandomStart, | ||
const SLVec3f & | velocityRandomEnd, | ||
const SLfloat & | timeToLive, | ||
SLGLTexture * | texC, | ||
const SLstring & | name = "Particle System" , |
||
SLGLTexture * | texFlipbook = nullptr , |
||
SLTexColorLUT * | texGradient = nullptr , |
||
const bool | doInstancedDrawing = false |
||
) |
SLParticleSystem ctor with some initial values. The number of particles.
The particle emitter position, the start and end random value range The time to live of the particle (lifetime). A texture, a name and a flipbook texture.
Definition at line 25 of file SLParticleSystem.cpp.
Definition at line 136 of file SLParticleSystem.h.
|
inline |
Definition at line 68 of file SLParticleSystem.h.
Definition at line 138 of file SLParticleSystem.h.
Definition at line 137 of file SLParticleSystem.h.
|
inline |
Definition at line 69 of file SLParticleSystem.h.
|
inline |
Definition at line 70 of file SLParticleSystem.h.
Definition at line 135 of file SLParticleSystem.h.
|
inline |
Definition at line 71 of file SLParticleSystem.h.
Definition at line 144 of file SLParticleSystem.h.
|
inline |
Definition at line 72 of file SLParticleSystem.h.
Definition at line 146 of file SLParticleSystem.h.
Definition at line 145 of file SLParticleSystem.h.
|
inline |
Definition at line 73 of file SLParticleSystem.h.
|
inline |
Definition at line 152 of file SLParticleSystem.h.
|
inline |
Definition at line 75 of file SLParticleSystem.h.
|
inline |
Definition at line 166 of file SLParticleSystem.h.
|
inline |
Definition at line 74 of file SLParticleSystem.h.
|
inline |
Definition at line 159 of file SLParticleSystem.h.
|
inline |
Definition at line 76 of file SLParticleSystem.h.
|
inline |
Definition at line 173 of file SLParticleSystem.h.
|
inline |
Definition at line 77 of file SLParticleSystem.h.
|
inline |
Definition at line 151 of file SLParticleSystem.h.
SLParticleSystem::buildAABB builds the passed axis-aligned bounding box in OS and updates the min & max points in WS with the passed WM of the node. Take into account features like acceleration, gravity, shape, velocity. SLMesh::buildAABB builds the passed axis-aligned bounding box in OS and updates the min& max points in WS with the passed WM of the node. Todo: Can ben enhance furthermore the acceleration doesn't work well for the moment. The negative value for the acceleration are not take into account and also acceleration which goes against the velocity. To adapt the acceleration to exactly the same as the gravity not enough time to do it. Need to adapt more accurately when direction speed is negative (for shape override example with Cone)
Reimplemented from SLMesh.
Definition at line 997 of file SLParticleSystem.cpp.
|
inlinevirtual |
SLMesh::calcNormals recalculates vertex normals for triangle meshes.
SLMesh::calcNormals recalculates the normals only from the vertices. This algorithms doesn't know anything about smoothgroups. It just loops over the triangle of the material faces and sums up the normal for each of its vertices. Note that the face normals are not normalized. The cross product of 2 vectors is proportional to the area of the triangle. Like this the normal of big triangles are more weighted than small triangles and we get a better normal quality. At the end all vertex normals are normalized.
Reimplemented from SLMesh.
Definition at line 65 of file SLParticleSystem.h.
void SLParticleSystem::changeTexture | ( | ) |
Change the current use texture, this will switch between the normal texture and the flipbook texture (and vice versa)
Definition at line 972 of file SLParticleSystem.cpp.
|
inline |
Definition at line 78 of file SLParticleSystem.h.
Definition at line 180 of file SLParticleSystem.h.
|
inline |
Definition at line 103 of file SLParticleSystem.h.
Definition at line 182 of file SLParticleSystem.h.
Definition at line 181 of file SLParticleSystem.h.
|
inline |
Definition at line 81 of file SLParticleSystem.h.
|
inline |
Definition at line 82 of file SLParticleSystem.h.
Definition at line 191 of file SLParticleSystem.h.
Definition at line 188 of file SLParticleSystem.h.
|
inline |
Definition at line 83 of file SLParticleSystem.h.
Definition at line 189 of file SLParticleSystem.h.
|
inline |
Definition at line 84 of file SLParticleSystem.h.
Definition at line 190 of file SLParticleSystem.h.
|
inline |
Definition at line 85 of file SLParticleSystem.h.
Definition at line 192 of file SLParticleSystem.h.
|
inline |
Definition at line 87 of file SLParticleSystem.h.
Definition at line 193 of file SLParticleSystem.h.
|
inline |
Definition at line 88 of file SLParticleSystem.h.
Definition at line 194 of file SLParticleSystem.h.
|
inline |
Definition at line 86 of file SLParticleSystem.h.
Definition at line 195 of file SLParticleSystem.h.
|
inline |
Definition at line 89 of file SLParticleSystem.h.
Definition at line 196 of file SLParticleSystem.h.
|
inline |
Definition at line 91 of file SLParticleSystem.h.
Definition at line 198 of file SLParticleSystem.h.
|
inline |
Definition at line 90 of file SLParticleSystem.h.
Definition at line 197 of file SLParticleSystem.h.
|
inline |
Definition at line 80 of file SLParticleSystem.h.
|
inline |
Definition at line 134 of file SLParticleSystem.h.
|
inline |
Definition at line 92 of file SLParticleSystem.h.
Definition at line 199 of file SLParticleSystem.h.
|
inline |
Definition at line 93 of file SLParticleSystem.h.
Definition at line 200 of file SLParticleSystem.h.
|
inline |
Definition at line 96 of file SLParticleSystem.h.
Definition at line 202 of file SLParticleSystem.h.
|
inline |
Definition at line 98 of file SLParticleSystem.h.
Definition at line 204 of file SLParticleSystem.h.
|
inline |
Definition at line 99 of file SLParticleSystem.h.
Definition at line 205 of file SLParticleSystem.h.
|
inline |
Definition at line 97 of file SLParticleSystem.h.
Definition at line 203 of file SLParticleSystem.h.
|
inline |
Definition at line 94 of file SLParticleSystem.h.
Definition at line 206 of file SLParticleSystem.h.
|
inline |
Definition at line 95 of file SLParticleSystem.h.
Definition at line 207 of file SLParticleSystem.h.
|
inline |
Definition at line 100 of file SLParticleSystem.h.
Definition at line 201 of file SLParticleSystem.h.
|
inline |
Definition at line 101 of file SLParticleSystem.h.
Definition at line 208 of file SLParticleSystem.h.
|
virtual |
Draw function override from SLMesh. In this function I start by generate the particle and programs if they are not, then I check if the particle have been culled by the frustum culling or if they have been resumed by the user. After I update the particle in the update pass, then and finally I draw them.
Reimplemented from SLMesh.
Definition at line 601 of file SLParticleSystem.cpp.
|
inline |
Definition at line 104 of file SLParticleSystem.h.
|
inline |
Definition at line 105 of file SLParticleSystem.h.
Definition at line 209 of file SLParticleSystem.h.
|
inline |
Definition at line 107 of file SLParticleSystem.h.
Definition at line 217 of file SLParticleSystem.h.
|
inline |
Definition at line 108 of file SLParticleSystem.h.
Definition at line 218 of file SLParticleSystem.h.
|
inline |
Definition at line 109 of file SLParticleSystem.h.
|
inline |
Definition at line 219 of file SLParticleSystem.h.
void SLParticleSystem::generate | ( | ) |
Function which will generate the particles and attributes them to the VAO.
Definition at line 292 of file SLParticleSystem.cpp.
void SLParticleSystem::generateBernsteinPAlpha | ( | ) |
Generate Bernstein Polynomial with 4 controls points for alpha over life. ContP contains 2 and 3 controls points StatEnd contains 1 and 4 controls points
Definition at line 530 of file SLParticleSystem.cpp.
void SLParticleSystem::generateBernsteinPSize | ( | ) |
Generate Bernstein Polynomial with 4 controls points for size over life. ContP contains 2 and 3 controls points StatEnd contains 1 and 4 controls points
Definition at line 550 of file SLParticleSystem.cpp.
Function which return the direction towards the exterior of a box.
Definition at line 165 of file SLParticleSystem.cpp.
Function which return a direction following the cone shape.
Definition at line 210 of file SLParticleSystem.cpp.
Function which return a direction following the pyramid shape.
Definition at line 278 of file SLParticleSystem.cpp.
Function which return the direction towards the exterior of a sphere.
Definition at line 101 of file SLParticleSystem.cpp.
|
private |
Function which return a position in the cone define in the particle system.
Definition at line 172 of file SLParticleSystem.cpp.
|
private |
Function which returns a position in the pyramid that define the PS.
Definition at line 224 of file SLParticleSystem.cpp.
|
private |
Function which return a position on the cone define in the particle system.
Definition at line 191 of file SLParticleSystem.cpp.
|
private |
Function which return a position on the pyramid that defines the PS.
Definition at line 240 of file SLParticleSystem.cpp.
|
inline |
Definition at line 106 of file SLParticleSystem.h.
Definition at line 210 of file SLParticleSystem.h.
|
inline |
Definition at line 110 of file SLParticleSystem.h.
Definition at line 220 of file SLParticleSystem.h.
|
inline |
Definition at line 111 of file SLParticleSystem.h.
void SLParticleSystem::pauseOrResume | ( | ) |
Function called by the user to pause or resume the particle system. This will freeze the particle system there won't be any updating, only the drawing
Definition at line 582 of file SLParticleSystem.cpp.
|
inline |
Definition at line 113 of file SLParticleSystem.h.
Definition at line 222 of file SLParticleSystem.h.
|
inline |
Definition at line 112 of file SLParticleSystem.h.
Definition at line 221 of file SLParticleSystem.h.
|
inline |
Definition at line 114 of file SLParticleSystem.h.
Definition at line 223 of file SLParticleSystem.h.
void SLParticleSystem::setNotVisibleInFrustum | ( | ) |
Function called inside SLNode cull3DRec(..) which flags the particle system to be not visible in the view frustum. This is needed to correct later the start time of the PS when it reappears again.
Definition at line 569 of file SLParticleSystem.cpp.
|
inline |
Definition at line 116 of file SLParticleSystem.h.
Definition at line 232 of file SLParticleSystem.h.
|
inline |
Definition at line 117 of file SLParticleSystem.h.
Definition at line 241 of file SLParticleSystem.h.
|
inline |
Definition at line 118 of file SLParticleSystem.h.
Definition at line 233 of file SLParticleSystem.h.
|
inline |
Definition at line 119 of file SLParticleSystem.h.
Definition at line 235 of file SLParticleSystem.h.
Definition at line 234 of file SLParticleSystem.h.
|
inline |
Definition at line 115 of file SLParticleSystem.h.
|
inline |
Definition at line 231 of file SLParticleSystem.h.
|
inline |
Definition at line 120 of file SLParticleSystem.h.
Definition at line 242 of file SLParticleSystem.h.
|
inline |
Definition at line 121 of file SLParticleSystem.h.
Definition at line 224 of file SLParticleSystem.h.
|
inline |
Definition at line 122 of file SLParticleSystem.h.
Definition at line 226 of file SLParticleSystem.h.
Definition at line 225 of file SLParticleSystem.h.
|
inline |
Definition at line 124 of file SLParticleSystem.h.
|
inline |
Definition at line 245 of file SLParticleSystem.h.
|
inline |
Definition at line 125 of file SLParticleSystem.h.
|
inline |
Definition at line 246 of file SLParticleSystem.h.
|
inline |
Definition at line 123 of file SLParticleSystem.h.
|
inline |
Definition at line 244 of file SLParticleSystem.h.
|
inline |
Definition at line 126 of file SLParticleSystem.h.
Definition at line 243 of file SLParticleSystem.h.
|
inline |
Definition at line 127 of file SLParticleSystem.h.
|
inline |
Definition at line 129 of file SLParticleSystem.h.
Definition at line 249 of file SLParticleSystem.h.
Definition at line 248 of file SLParticleSystem.h.
|
inline |
Definition at line 131 of file SLParticleSystem.h.
Definition at line 263 of file SLParticleSystem.h.
Definition at line 262 of file SLParticleSystem.h.
|
inline |
Definition at line 130 of file SLParticleSystem.h.
Definition at line 256 of file SLParticleSystem.h.
Definition at line 255 of file SLParticleSystem.h.
|
inline |
Definition at line 128 of file SLParticleSystem.h.
Definition at line 247 of file SLParticleSystem.h.
Vector for acceleration (different direction as the velocity)
Definition at line 305 of file SLParticleSystem.h.
|
private |
Acceleration constant (same direction as the velocity)
Definition at line 306 of file SLParticleSystem.h.
|
private |
Amount of a particle.
Definition at line 289 of file SLParticleSystem.h.
|
private |
Rotation rate const (change in angular rotation divide by change in time)
Definition at line 353 of file SLParticleSystem.h.
Rotation rate range (change in angular rotation divide by change in time)
Definition at line 354 of file SLParticleSystem.h.
|
private |
pointer to the asset manager (the owner) if available
Definition at line 286 of file SLParticleSystem.h.
Vector for bezier curve (default linear function)
Definition at line 297 of file SLParticleSystem.h.
Vector for bezier curve (default linear function)
Definition at line 300 of file SLParticleSystem.h.
|
private |
Floats for bezier curve control points (P1: 01 ; P2: 23)
Definition at line 298 of file SLParticleSystem.h.
|
private |
Floats for bezier curve control points (P1: 01 ; P2: 23)
Definition at line 301 of file SLParticleSystem.h.
|
private |
Floats for bezier curve end start points (Start: 01 ; End: 23)
Definition at line 299 of file SLParticleSystem.h.
|
private |
Floats for bezier curve end start points (Start: 01 ; End: 23)
Definition at line 302 of file SLParticleSystem.h.
|
private |
Billboard type (BT_Camera, BT_Vertical, BT_Horizontal.
Definition at line 357 of file SLParticleSystem.h.
Color for particle.
Definition at line 320 of file SLParticleSystem.h.
|
private |
Delta time in between two frames S.
Definition at line 337 of file SLParticleSystem.h.
Direction of particle.
Definition at line 315 of file SLParticleSystem.h.
|
private |
Boolean for acceleration (different direction)
Definition at line 383 of file SLParticleSystem.h.
|
private |
Boolean for acceleration.
Definition at line 382 of file SLParticleSystem.h.
|
private |
Boolean for alpha over life time.
Definition at line 393 of file SLParticleSystem.h.
|
private |
Boolean for alpha over life time curve.
Definition at line 395 of file SLParticleSystem.h.
|
private |
Boolean for glow/brightness on pixel with many particle.
Definition at line 378 of file SLParticleSystem.h.
|
private |
Boolean for color.
Definition at line 386 of file SLParticleSystem.h.
|
private |
Boolean for color over life time.
Definition at line 394 of file SLParticleSystem.h.
|
private |
Boolean for counter lag/gap, can create flickering with few particle (explained in documentation) when enable.
Definition at line 381 of file SLParticleSystem.h.
|
private |
Boolean for direction and speed (override velocity)
Definition at line 379 of file SLParticleSystem.h.
|
private |
Boolean for flipbook texture.
Definition at line 398 of file SLParticleSystem.h.
|
private |
Boolean for gravity.
Definition at line 392 of file SLParticleSystem.h.
|
private |
Boolean for instanced rendering.
Definition at line 399 of file SLParticleSystem.h.
|
private |
Boolean for rotation.
Definition at line 384 of file SLParticleSystem.h.
|
private |
Boolean for rotation range (random value between range)
Definition at line 385 of file SLParticleSystem.h.
|
private |
Boolean for shape feature.
Definition at line 387 of file SLParticleSystem.h.
|
private |
Boolean for override direction for shape direction.
Definition at line 389 of file SLParticleSystem.h.
|
private |
Boolean for spawn at base of shape (for cone and pyramid)
Definition at line 390 of file SLParticleSystem.h.
|
private |
Boolean for shape surface (particle will be spawned on surface)
Definition at line 388 of file SLParticleSystem.h.
|
private |
Boolean for size over life time.
Definition at line 396 of file SLParticleSystem.h.
|
private |
Boolean for size over life time curve.
Definition at line 397 of file SLParticleSystem.h.
|
private |
Boolean for speed range.
Definition at line 380 of file SLParticleSystem.h.
|
private |
Boolean for world space position.
Definition at line 391 of file SLParticleSystem.h.
|
private |
Boolean to switch buffer.
Definition at line 323 of file SLParticleSystem.h.
|
private |
Averaged time for drawing in MS.
Definition at line 333 of file SLParticleSystem.h.
|
private |
Position of the particle emitter.
Definition at line 290 of file SLParticleSystem.h.
|
private |
Number of flipbook sub-textures by column.
Definition at line 328 of file SLParticleSystem.h.
|
private |
Number of update of flipbook by second.
Definition at line 326 of file SLParticleSystem.h.
|
private |
Number of flipbook sub-textures by row.
Definition at line 329 of file SLParticleSystem.h.
|
private |
Last time flipbook was updated.
Definition at line 327 of file SLParticleSystem.h.
Vector for gravity (2nd. acceleration vector)
Definition at line 307 of file SLParticleSystem.h.
|
private |
Definition at line 369 of file SLParticleSystem.h.
|
private |
Definition at line 370 of file SLParticleSystem.h.
|
private |
Boolean to generate particle system and load it on the GPU.
Definition at line 375 of file SLParticleSystem.h.
|
private |
Boolean to stop updating.
Definition at line 374 of file SLParticleSystem.h.
|
private |
Boolean to set time since node not visible.
Definition at line 373 of file SLParticleSystem.h.
|
private |
Time since the particle system is paused.
Definition at line 343 of file SLParticleSystem.h.
|
private |
Time since start when node not visible in S.
Definition at line 340 of file SLParticleSystem.h.
|
private |
height radius of a particle
Definition at line 293 of file SLParticleSystem.h.
|
private |
width radius of a particle
Definition at line 292 of file SLParticleSystem.h.
|
private |
Scale of a particle (Scale the radius)
Definition at line 294 of file SLParticleSystem.h.
|
private |
Angle of cone and pyramid shapes.
Definition at line 349 of file SLParticleSystem.h.
|
private |
Height of cone and pyramid shapes.
Definition at line 348 of file SLParticleSystem.h.
|
private |
Radius of sphere and cone shape.
Definition at line 346 of file SLParticleSystem.h.
Scale of box shape.
Definition at line 347 of file SLParticleSystem.h.
|
private |
Shape type (ST_)
Definition at line 358 of file SLParticleSystem.h.
|
private |
Width of pyramid shape.
Definition at line 350 of file SLParticleSystem.h.
|
private |
Speed of particle.
Definition at line 316 of file SLParticleSystem.h.
Speed random between two value.
Definition at line 317 of file SLParticleSystem.h.
|
private |
Time since start of draw in MS.
Definition at line 334 of file SLParticleSystem.h.
|
private |
Time since start for updating in MS.
Definition at line 335 of file SLParticleSystem.h.
|
private |
Time since start for updating in S.
Definition at line 336 of file SLParticleSystem.h.
|
private |
Flipbook texture with e.g. multiple flames at subsequent frames.
Definition at line 363 of file SLParticleSystem.h.
|
private |
Color gradient texture.
Definition at line 364 of file SLParticleSystem.h.
|
private |
Main texture of PS (non flipbook)
Definition at line 362 of file SLParticleSystem.h.
|
private |
Time to live of a particle.
Definition at line 291 of file SLParticleSystem.h.
|
private |
Averaged time for updating in MS.
Definition at line 332 of file SLParticleSystem.h.
|
private |
Definition at line 367 of file SLParticleSystem.h.
|
private |
Definition at line 368 of file SLParticleSystem.h.
Velocity constant (go in xyz direction)
Definition at line 310 of file SLParticleSystem.h.
Max. random velocity.
Definition at line 312 of file SLParticleSystem.h.
Min. random velocity.
Definition at line 311 of file SLParticleSystem.h.
|
private |
Velocity type.
Definition at line 359 of file SLParticleSystem.h.