140 likes | 286 Views
Fire rendering. For game development in Unity3D. Goal. Achieve close to realistic fire in a Unity Game. Limitations. Optimized for fast real-time rendering Low-end computers should be able to run it. Article : ”GPU Gems ” book. 3 particle systems
E N D
Fire rendering For game development in Unity3D
Goal • Achieveclose to realistic fire in a Unity Game Limitations • Optimized for fast real-timerendering • Low-end computers shouldbeable to run it
Article: ”GPU Gems” book 3 particle systems Total of 3000 simple particles Slow and ugly GPU Gems: Fire rendered real-time using thousands of particles
Simple particles: Otheruses? Flamethrower? 3 particle systems Total of ~50 simpleparticles 3 particle systems Total of ~50 texturedparticles
Using the video textureparticles Article: Video particles • Howmanyframes in total? • Actual video footageoranimated? Using the frames given:
Improvingeffect Article:Rotate the particle animations for more variation I thought it lookedstrange to have lickingflamesmove sideways… so…
Creatingspecializedparticle systems • - Movesslightlyupwards • Does not changesize • Onlyplacedonground • Randomlymovessligtly • in all directions • - Expands in size • May moveconsiderablysideways • Expands in size • Placednearedge of fire • Semi-transparent
Result of replica Severalparticle systems Randomplacing All animations rotated 4 times Randomplacing Specialized systems 50-100 particles per fire.
Remake fire animation Using a Maya Fluids tutorial to make fire: Tutorial Result
Rendering an animation Bursting fire Continual fire 2480 x 4400 JPEG 1,12 Mb 1327 x 2262 JPEG 1,15 Mb Optimization: Removal of blackness: - Difficult - Not worth it in kb! - Don’t bother!!
New result Using20 particles of 50 frameanimations
Comparison Single particle 3-particle system Real footage 3 fires Total ~20 particles
Conclusion • Thousands of simple particles • Slow to render real-time • Hard to make it look good • Tinyparticletexture file • Lowqualityresult • Fewhighqualityparticles • Time consuming to develop • Fast to render • Highqualityresult • Large particletexture file • Requires software to create the images (Maya Fluids orsimilar)
Extension Check out the explosion asset package at unity3d.com !! • Explosions • Texturedparticles • Texturedtrailrenderer (particles) • Shockwave • Post-processingeffect / customshader • Heat shimmer • Post-processingeffect / customshader