Jump to content
Sign in to follow this  
  • entries
    8
  • comments
    18
  • views
    4093

playing around

Sign in to follow this  
bitplane

303 views

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  


3 Comments


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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!