April 18th, 2013: Migrating Project to https://github.com/Cody-Duncan/XNAParticles
I will be sure to pull changes back to the repository here.

Requirements: XNA 3.1, Visual Studio 2008 (for source code), a graphics card that supports Shader Model 3.0 .

This simulates a field of particles. Physics calculations are done using HLSL with the vertex texture fetch. Each particle's velocity is stored in a pixel's rgb values in a texture. The position is stored in a separate texture. The velocity texture is run through an HLSL shader to update the velocities, and then the same sort of thing occurs for the position texture. This allows these calculations to be done on the GPU rather than CPU. The final shader pulls these values from the textures to place and render each particle.

This demo includes controls like left-click to attract particles to the mouse cursor, right-click to repel. The mouse controls are poorly mapped to the 3D environment, so expect it to be a little off.

Project Samples

Project Activity

See All Activity >

Categories

Games

Follow XNA HLSL Particles

XNA HLSL Particles Web Site

Other Useful Business Software
Enterprise and Small Business CRM Solution | Clear C2 C2CRM Icon
Enterprise and Small Business CRM Solution | Clear C2 C2CRM

Voted Best CRM System with Top Ranked Customer Support. CRM Management includes Sales, Marketing, Relationship Management, and Help Desk.

C2CRM consists of four modules that integrate to provide a comprehensive CRM solution: Relationship Management, Sales Automation, Marketing Automation, and Customer Service. Only buy what each user needs.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of XNA HLSL Particles!

Additional Project Details

Operating Systems

Windows

Languages

English

Programming Language

C#

Related Categories

C# Games

Registered

2011-12-29