Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » Let's have a (virtual) fireworks competition!

This thread is locked; no one can reply to it. rss feed Print
Let's have a (virtual) fireworks competition!
Jonatan Hedborg
Member #4,886
July 2004
avatar

Who can make the nicest looking fireworks? Deadline is 31st december, 23:59 GMT.

Any language, any library. Should be able to compile and run with minimal fuss, posting of pre-built binaries is encouraged. It should run for at about a minute, and be judged for that time.

After everyone has posted, we vote for which one we liked best (other than our own). Simple!

Anyone in? Suggestions for improvements?

CGamesPlay
Member #2,559
July 2002
avatar

Compile and run on Windows? Linux? OS X?

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Jonatan Hedborg
Member #4,886
July 2004
avatar

I'm not going to tell people what to use, but obviously it's more fun if as many people as possible can compile it. If you make it harder to compile, less people will view it. Then it might be good to post several screenshots or a video of the fireworks in action :)

Steve Terry
Member #1,989
March 2002
avatar

Damn, if I only had time to compete I would.

___________________________________
[ Facebook ]
Microsoft is not the Borg collective. The Borg collective has got proper networking. - planetspace.de
Bill Gates is in fact Shawn Hargreaves' ßî+çh. - Gideon Weems

KnightWhoSaysNi
Member #7,339
June 2006
avatar

I'm working on an allegro 4.4 opengl game framework type thing.

This would help / encourage me to work on the particle system aspect of it.

blargmob
Member #8,356
February 2007
avatar

Can we pre-compile a binary and just include the source?

---
"No amount of prayer would have produced the computers you use to spread your nonsense." Arthur Kalliokoski

Jonatan Hedborg
Member #4,886
July 2004
avatar

I'm working on an allegro 4.4 opengl game framework type thing.

This would help / encourage me to work on the particle system aspect of it.

Great!

blargmob said:

Can we pre-compile a binary and just include the source?

Sure, I can't see why not.

Damn, if I only had time to compete I would.

A shame. But if you get the time, it should probably not take too long to whip something up ;)

ixilom
Member #7,167
April 2006
avatar

I'll hack something with XNA :)

___________________________________________
Democracy in Sweden? Not since 2008-Jun-18.
<someone> The lesbians next door bought me a rolex for my birthday.
<someone> I think they misunderstood when I said I wanna watch...

blargmob
Member #8,356
February 2007
avatar

ixilom said:

XNA

8-) ;D

---
"No amount of prayer would have produced the computers you use to spread your nonsense." Arthur Kalliokoski

type568
Member #8,381
March 2007
avatar

Nice idea, I'll maybe code up something..
However, topic starter.. Would be nice if you encourage us by giving up an example ;)

ImLeftFooted
Member #3,935
October 2003
avatar

Check out what I made! :o
{"name":"dogs+and+fireworks.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/7\/d798566490103d72812529acaa259f1e.png","w":490,"h":490,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/7\/d798566490103d72812529acaa259f1e"}dogs+and+fireworks.jpg

Jonatan Hedborg
Member #4,886
July 2004
avatar

I'm working on mine ;) I've still to decide what library to use. I don't really feel like installing allegro 4.9, what with all the libraries needed... And I might need decent blending. Any suggestions?

Check out what I made!

Purdy! Keep it up :D

type568
Member #8,381
March 2007
avatar

And I might need decent blending. Any suggestions?

No.. But my general direction of thoughts is recursion(fractals).

FMC
Member #4,431
March 2004
avatar

I'd be interested.
What is the current way to get additive blending with Allegro nowadays?

I used to use Fblend but i'm having a few problems making it work with 4.4.
Is allegroGl the only other way?

[edit]Same question as Jonatan, didn't see his last post.

[FMC Studios] - [Caries Field] - [Ctris] - [Pman] - [Chess for allegroites]
Written laws are like spiders' webs, and will, like them, only entangle and hold the poor and weak, while the rich and powerful will easily break through them. -Anacharsis
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover. -Mark Twain

ixilom
Member #7,167
April 2006
avatar

I'm already doing something horribly wrong with my particles in XNA, it chokes my pretty decent PC with ~200 particles :o

___________________________________________
Democracy in Sweden? Not since 2008-Jun-18.
<someone> The lesbians next door bought me a rolex for my birthday.
<someone> I think they misunderstood when I said I wanna watch...

Jonatan Hedborg
Member #4,886
July 2004
avatar

How are you storing and creating them?

ixilom
Member #7,167
April 2006
avatar

Just a generic List<T>, no fancy pools or anything, but I might need to look into that anyway :P

___________________________________________
Democracy in Sweden? Not since 2008-Jun-18.
<someone> The lesbians next door bought me a rolex for my birthday.
<someone> I think they misunderstood when I said I wanna watch...

Frank Drebin
Member #2,987
December 2002
avatar

Dustin: please attach at least an executable to join the competition...

and here comes my entry... {"name":"600091","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/3\/6\/36db28c50ea34922142402993d3d35d7.png","w":647,"h":513,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/3\/6\/36db28c50ea34922142402993d3d35d7"}600091
as long as noone else posts an executable the winner seems to be .... me ;D

[EDIT]
now the source is available (don't steel from it!!!)
in this improved version the rockets are fired automatically so you don't have to hit the space-key all the time...

type568
Member #8,381
March 2007
avatar

Nice, that's generally what I planned to do, putpixel() is it.
However, there are many things can be improved.. E.g. perhaps colors shouldn't just go black, but lose color(move to grayscale), at the time with losing brightness overall. In addition to gravity, there could be wind and air-drag force.
This one without fractals though, probably :D

Append: Frank, source please?

Timorg
Member #2,028
March 2002

I am in. :) It will give me something to do tonight when I am bored.

____________________________________________________________________________________________
"c is much better than c++ if you don't need OOP simply because it's smaller and requires less load time." - alethiophile
OMG my sides are hurting from laughing so hard... :D

ixilom
Member #7,167
April 2006
avatar

Could someone help me out with something?

I'm having problems getting a velocity vector for my particles in an explosion that results in a "ring" in the sky.
Doing something like below is fine and dandy for your avarage explosion:

foreach(Particle p in m_particles)
{
p.Velocity = new Vector2(-(rand.NextDouble()),rand.NextDouble());
}

The problem is how to create those velocities whilst not accepting a minimum range.
Like 0.1f for X and 0.1f Y not being acceptable, however it should be possible to have 0.1f X but Y being 0.9f ... Does that make any sense?

I've been scratching my head for some time now and soon I'll probably start ripping hair >:(

___________________________________________
Democracy in Sweden? Not since 2008-Jun-18.
<someone> The lesbians next door bought me a rolex for my birthday.
<someone> I think they misunderstood when I said I wanna watch...

Arthur Kalliokoski
Second in Command
February 2005
avatar

ixilom said:

Like 0.1f for X and 0.1f Y not being acceptable

That would be perfectly acceptable if the sprite/spark thingee was almost directly approaching/receding to your line of sight (in 3d viewpoint). It's pretty neat to see a meteor do that (seems almost motionless).

They all watch too much MSNBC... they get ideas.

Timorg
Member #2,028
March 2002

You could do something like...

#include <cmath>

VECTOR::VECTOR(const POLAR &v)
{
    _x = v.r * std::cos(v.t);
    _y = v.r * std::sin(v.t);
}

Where v.r is the velocity (radial length) and v.t is the angle (theta).

That way they all have the same outwards speed, but each can have a different angles.

____________________________________________________________________________________________
"c is much better than c++ if you don't need OOP simply because it's smaller and requires less load time." - alethiophile
OMG my sides are hurting from laughing so hard... :D

ixilom
Member #7,167
April 2006
avatar

Timorg, thanks!

I've been too focused on vectors that I totally neglected sin/cos ... d'oh ::)

___________________________________________
Democracy in Sweden? Not since 2008-Jun-18.
<someone> The lesbians next door bought me a rolex for my birthday.
<someone> I think they misunderstood when I said I wanna watch...

Arthur Kalliokoski
Second in Command
February 2005
avatar

If they all had the same outward speeds, you'd wind up with a ring again. Unless you're actually using a Z component of course.

Look closely:

{"name":"China_Kyling_Fireworks_Display_Shell.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/7\/c77bbc14d1cbe12137ac4c31de4dad04.gif","w":400,"h":400,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/7\/c77bbc14d1cbe12137ac4c31de4dad04"}China_Kyling_Fireworks_Display_Shell.jpg

They all watch too much MSNBC... they get ideas.



Go to: