Exchange Forum > AutoCAD Games
4th of July Fireworks
4th of July Fireworks

#1

AVLISP
Join Date:
09-28-2007
Hello,
 
Check out this new routine that generates an animated Fireworks show.
 
It is simple to make and run.
 
First download the 2 files. fireworks.lsp and fireworks.dcl
 
On your C drive create a folder called FIREWORKS. Add and .lsp .dcl file in new folder. Add folder into directory search path.
 
On a new dwg. Load the file. Create the slides first with c:makebombs
 
It will ask you for 10 points, Those points will be the bomb centers.
 
Then it will start generating the fireworks slides. It will take several minutes. After the slides are made. run show with c:showbombs
 
Depending on your processor, you can change three variables for better visualization. They are the sparks for each bomb. The number of explotions, and the number of slides.
 
Hope you like it.
 
Enjoy .
 
AVLISP
 
You can also check out the Animated US Flag in the Autolisp and VisualLIsp Forum.

Attachments  fireworks.dcl    fireworks.lsp  
4th of July Fireworks

#2

CAD Guy
Join Date:
05-30-2008
I am trying to run the program, but after I make the 10 points it says
 
(it will start generating the explosions. Please wait a few min.)
 
I hit enter and I get an error saying
 
(Error saving slide file: C:/ FIREWORKS\FIREWORKS1.sld) ?????
4th of July Fireworks

#3

Bennett
Join Date:
07-26-2007
I read through the notes at the top of the lsp file. You will need to create a C:\Fireworks folder then copy the lsp and dcl file into that folder and start a new drawing in that folder. After loading it, type MakeBombs first then ShowBombs for the Fireworks display.
Bennett
4th of July Fireworks

#4

Cricket
Join Date:
08-30-2007
I like your slide animation of the 4th of July Fireworks. I didn't read the instructions before I ran it and I got the same error. But it works fine now.