Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

playing around

Sign in to follow this  


shields with particles

and because you can never have enough screenshots, 'heres one I made earlier', a snap of my CCloudSceneNode class in action

I'm proud of them, they're awesome. I even got featured on Niko's blog. Now thats fame for ya!
There's a demo here
Sign in to follow this  


Recommended Comments

Looks good mate. How is it done? Do the clouds animate? Are they billboarded sprites or something?

Share this comment

Link to comment
Okay, you asked for it!
waffle {
I start off with an array of 'cloud' structures, the numer of parent clouds is supposed to be quite a small so they can be blown around or whatever. Each parent node can have child clouds set by their childcount, childscale and firstchild. Children can also have children, so to avoid infinite recursion there's a variable for maximum depth and another for level of detail.

At render time I create a list of visible clouds (I need to add culling here), calculate the distance from the camera, sort them, fill a vertex buffer with the billboards and draw as a single texture. All pretty CPU intensive stuff.

Each cloud has its own colour, but Irrlicht doesn't have a material that supports transparrent texture alpha and vertex alpha together, so there's LOD popping instead of fading in nicely.
You can rotate and move the entire scene node, and manipulate all the nodes in the list individually (which isn't practical for children).

The source code was built on Irrlicht's particle system, and works with Irrlicht 0.10 and Dev-C++ under Windows or Linux.

Here's a video

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!