Skip to Main Content
Learning XNA 3.0
book

Learning XNA 3.0

by Aaron Reed
November 2008
Beginner content levelBeginner
510 pages
16h 24m
English
O'Reilly Media, Inc.
Content preview from Learning XNA 3.0

Summary

  • A particle is simply a way of representing a single element within a group of elements that form a particle effect, such as an explosion or some magical spell effect.

  • A particle engine is a mechanism that manipulates, adds, removes, and draws particles to make up a particle effect. Often, particle engines simulate gravity and other external forces to make particle effects look more realistic.

  • In addition to using vertex types such as VertexPositionColor and VertexPositionTexture, you can create your own customized vertex types providing any kind of information you want. To understand your vertex type, the graphics card needs a VertexDeclaration specifying what members exist in the vertex type and what data to send to certain semantics in HLSL.

  • Point sprites were introduced in DirectX 8 as a way to allow developers to draw particles or other effects using only one vertex per particle.

  • In HLSL you can specify the size of a vertex using the PSIZE[n] semantic, which will let you create point sprites that vary in size.

  • Anyone who knows XNA and can create sweet particle effects will have more friends than they know what to do with.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning XNA 4.0

Learning XNA 4.0

Aaron Reed
Beginning C# 7 Programming with Visual Studio 2017

Beginning C# 7 Programming with Visual Studio 2017

Benjamin Perkins, Jacob Vibe Hammer, Jon D. Reid

Publisher Resources

ISBN: 9780596154905Supplemental ContentErrata Page