The fireworks is pretty neat... but i find it crashes if i hit the full-screen button.. :(
Yeah, the window can only be so big - will work 1024x768.
Let us look for the error in the code...
Why is ExitThread used and TerminateThread is not used? And the sleep functions should not be needed if the threads are created from within the window create message and the thread is waiting on the window to reply to another message.
...but the following is most certainly the problem:
I think this program can be re-wrote without threads, or better communication between threads is needed - using constant sleep times and assuming the state of the threads is not a good idea.
Let us look for the error in the code...
Why is ExitThread used and TerminateThread is not used? And the sleep functions should not be needed if the threads are created from within the window create message and the thread is waiting on the window to reply to another message.
...but the following is most certainly the problem:
invoke HeapAlloc,hHeap,HEAP_ZERO_MEMORY,2359296
add eax,4096 ; blur: -1'th line problem
mov bitmap1,eax
invoke HeapAlloc,hHeap,HEAP_ZERO_MEMORY,2359296
2359296 = 768*1024*3 :grin:
I think this program can be re-wrote without threads, or better communication between threads is needed - using constant sleep times and assuming the state of the threads is not a good idea.
This version will work up to 1280x1024 and doesn't use threads. On my machine this version is faster on small windows, but the same speed on large windows. Wonder if it would help any to send paint messages to the window rather than using SetDIBitsToDevice outside the WndProc?
Hehe
Well almost the same kind of effect is used in HE to show slpash damage explosions on top of ships
Different parameters/color palette and no MMX but the idea is the same: generate some particles and then blur them while they move in gravitational field
Well almost the same kind of effect is used in HE to show slpash damage explosions on top of ships
Different parameters/color palette and no MMX but the idea is the same: generate some particles and then blur them while they move in gravitational field
For example this is what i did for my little girl's birthday (she had fun with it)
(press 3 to generate explosion)
(press 3 to generate explosion)
BogdanOntanu, it did not work. Black screen then back to desktop.
Ooops,
Added the "needed" bitmaps, sorry forgot to include them in above post
Added the "needed" bitmaps, sorry forgot to include them in above post
I was not very polished just something fast to show my little girl at her birthday "demo" party :grin:
so:
- press "3" to generate a random explosion
- there is an atractor in the scene :grin:
-press PageDown to see speed actually render time in microseconds
so 20.000=50fps,10.000=100fps, 5.000=200fps
i can not recall what other options are available
source code is too much dummy/quick hacked but i guess i could arrange it an post if anybody is interested
so:
- press "3" to generate a random explosion
- there is an atractor in the scene :grin:
-press PageDown to see speed actually render time in microseconds
so 20.000=50fps,10.000=100fps, 5.000=200fps
i can not recall what other options are available
source code is too much dummy/quick hacked but i guess i could arrange it an post if anybody is interested
BTW...
Does this version work?
Does this version work?
BTW...
Does this version work?
Wow? what PC do youu have (and what monitor refresh rate?)
2000 is approx 500fps :grin:
I hardly got 10 fps on a P1133Mhz -- that is why i reduced the size of the effect
Should i make a more parametrized one running in window? like the effect presented here first?
2000 is approx 500fps :grin:
I hardly got 10 fps on a P1133Mhz -- that is why i reduced the size of the effect
Should i make a more parametrized one running in window? like the effect presented here first?
I also think this should be on the Games section?
or de we need a small demo scene section :-?
or de we need a small demo scene section :-?
Should i create a tool to make such effects with many parameters like:
-number of particles,distribution,life time
-gravitation,
-blur methods,
-attractors,
-color palletes
And then save them as a movie/sequence of bitmaps?
Anyone interested ?
-number of particles,distribution,life time
-gravitation,
-blur methods,
-attractors,
-color palletes
And then save them as a movie/sequence of bitmaps?
Anyone interested ?
I was not very polished just something fast to show my little girl at her birthday "demo" party :grin:
so:
- press "3" to generate a random explosion
- there is an atractor in the scene :grin:
-press PageDown to see speed actually render time in microseconds
so 20.000=50fps,10.000=100fps, 5.000=200fps
i can not recall what other options are available
source code is too much dummy/quick hacked but i guess i could arrange it an post if anybody is interested
hey thats cool!
All I saw on my PC when I pressed PgDown was a number that was constantly increasing and another number below it that remained at zero.
Please post the source, nice effect :D
what about making a screensaver out of the exe... it would look really nice on my screen :)
Gee.. that looks awesome. Is there any beginner tutorial on this graphic topic? I suppose this one does not use dx or opengl? I dont wanna go too deep into all this, but I would love to have a little window in my "about dialog" with some cool animation like this one. Pretty amazing.
nice work, Bitrake :) ought to make comtrails coming up..
nice work, Bitrake :) ought to make comtrails coming up..
Mikky, check out the demo scene - there are tons of tuts on graphics. Tuts from the old hornet archive are the best for beginers, imho.
beaster, should be fairly easy to do...