[project1dev] Project1 - SVN Update 295

  • From: dhapache@xxxxxxxxxxxxxxxxxxx (Apache User)
  • To: project1dev@xxxxxxxxxxxxx
  • Date: Sun, 28 Jun 2009 00:01:19 -0700 (PDT)

User:atrix256

Message: Puffballs are now done via a particle emitter in voidmap - my fps went 
back up to 60 with vsync on with the same number of puffballs so it should be a 
big preformance win on this map for everyone wooo!

Added some new script functions

* ParticleSystem_Create - creates a particle system that starts spewing out 
particles
* ParticleSystem_SetScale - if you want your particles to be sizes other than 
1.0 scale, you can set that up here
* ParticleSystem_SetVelocity - if you want your particles to move, you can set 
that up here
* ParticleSystem_RunTicks - since when you first start up a particle system, it 
looks different than when it gets going after a while, use this function to 
artificially run the particle system for a specified number of seconds so that 
it looks like it's been running for a while
* ParticleSystem_GetNumParticles - use this to find out how many particles your 
particle system is using.  If it hits the max particle count and you are having 
bad looking effects (ie it looks like the particles stop coming out then start 
coming out again) the problem is that your max particle count is too low (well, 
thats one way to solve it... or make them come out slower)

bon apetit!

more particle system functionality will come in as the needs arise (:

<Files Changed>
U   ARRelease.exe
U   AR_Camera.cpp
U   AR_LuaFuncs.cpp
U   AR_Map.cpp
U   AR_Profiler.h
U   AR_UI.cpp
U   Base.vcproj
A   Docs/Script Help/ParticleSystem_Create.html
A   Docs/Script Help/ParticleSystem_GetNumParticles.html
A   Docs/Script Help/ParticleSystem_RunTicks.html
A   Docs/Script Help/ParticleSystem_SetScale.html
A   Docs/Script Help/ParticleSystem_SetVelocity.html
U   Docs/Script Help/toc.html
A   Docs/Website/062209a.jpg
A   Docs/Website/062209b.jpg
A   Docs/Website/062209c.jpg
U   Docs/Website/index.php
U   LowLevel.cpp
U   LowLevel.h
A   Particles.cpp
A   Particles.h
U   READMETODO.txt
U   Scripts/Maps/voidmap.lua


Other related posts: