-
Senior Member
Yes!!! Flash player 9 is AMAZING
Wow, I just had to tell everyone this
I tried a simple verlet experiment in flash player 9 beta, and check this out
I had 100 particles on screen
used brute force for collision detection O(n^2)
did collision checking 5 times per frame
and my framerate--between 30 to 40 fps
WOW
it's kinda late now, but I'll post an example later
make sure to download flash player 9
-
hmm
Is that written under AS3 or under AS2? Interested to know if old games will get the speed boost.
Amazing to hear though, should be an amazing release for game developers.
-
Nice, so we would create a 2d physically based shooter in flash! Awesome!
-
Senior Member
demo
here is a demo
http://studio.fileitup.com:88//oz/driver.swf
it's written in as3, but I'm guessing you can use your as2 code...being that its all the same except when it comes to drawing/events/etc
Last edited by ozmic66; 06-03-2006 at 01:12 PM.
-
Iron Chef In-Training
Sweetness!!!
That's awesome to hear seeing as how I can get about 21 particles on before slowdown, I'm beginning to wonder how many particles I can get to go with Flash Player 9. This indeed really opens the door for game developers or cool things in general.
-
Senior Member
u can download player9 beta through adobe labs
-
157 Particles 15 fps! OMG!!!!!!!!! JIHAAA!!!
-
Senior Member
-
Senior Member
jeeeezus!!!
20-30 fps with 300 particles!
firefox/windows running under parallels on a macbook coreduo 2Ghz...
-
Senior Member
nice... looks like the mac player has been improved as well
-
Senior Member
err, no,
i was using firefox on windows in the parallels virtualization environment.
-
Senior Member
oh well.. i tried
-
My pc kinda sucks, but i will buy a new one next month, i bought halflife2 and i can't play it!
-
hmm
Ozmic66, any idea how I could take something I've done in AS2 and get it to compile for Flash 9?
I have the compiler and flex (If you need that at all). Cheers mate.
-
Senior Member
it depends on what exactly you have
if its code, then you can make a new project in flex and copy all the code there, making changes where necessary, like various events and drawing on the screen
you cant really convert the animation and tweening part into player9 because flex doesnt open fla files
if you need more help dont hesitate to ask
-
Custom User Title
Originally Posted by ozmic66
used brute force for collision detection O(n^2)
did collision checking 5 times per frame
What is 'brute force for colision detection?'?
Each ball hitTest all the other balls?
-
Senior Member
yep. but the demo I actually posted doesn't use that.. I used a more efficient algorithm called sweep and prune
-
hmm
I think I'll stick with 8 for the mean time. Porting the fp9 shouldn't be too difficult when the time comes as I'm programming my game in heavy OO AS2. Should hopefully be a simple matter of updating my draw method (Hopefully ).
PS: Care to ellaborate on sweep and prune
-
Senior Member
sweep and prune
sweep and prune is an algo. for broad phase collision detection, or just
for finding objects that might be colliding. To do this it uses the bounding box of every object (no, rotations, just an axis-aligned box)
in order for this to work, you must, on every frame, sort all of your objects in a list by the left side of their bounding box (I'll explain how to in a sec)
once they are sorted, you can loop through each object, starting at the left-most, but now, unlike brute force, you most likely won't have to loop through each other object. this is because if the object under you on the list doesn't overlap with you on the x-axis (their bounding box) then you don't have to check any other objects on the list because they're all to the right (try drawing it out if u dont get it) and you can go on to the next obj. in the outer loop
for sorting, use bubble sort, which simply means going through each object on the list and moving it down until its value is lower than the object above it (index-wise)
this works great for sweep and prune because your objects won't move that much on each frame, which will keep the sorting to about O(n)
good luck, pm me if you need any help
-
hmm
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|