Yeah I came across that at some point and got all excited, but it doesn't even handle collisions... I don't see it going anywhere fast. I really think an AS3 port of Bullet is the way to go, especially since there is already a pretty nice Java port as of just recently. It is exciting to see these possibilities in Flash, even though I am still primarily interested in 2D. I think Flash 10 will have some speed improvements for texture transformations in 3D, so 3D engines in Flash will be a lot more feasible. It would be great to see hardware acceleration though!
I tried to use Eclipse and the J2AS plug in to port the java Bullet physics engine to AS3. But a step or two has been left out of the instructions for using it, and I have emailed the author to try to get some assistance with that. (It's my lack of experience with using Eclipse that is the problem really.) When I followed the instructions, some of the code did not get converted because I am having trouble establishing source folders.
It seems that since the Collada export should already contain physics information from the Bullet engine it would make more sense to use it. The Collada.as for Papervision only pulls in material information at the moment, but I have been working on parsing the XML and assign dynamic variables for the nodes so that if the XML changes, the variables would be dynamically available. Not sure if this is the approach to take. The first thing I ran into was the namespace issue.
Once that is done, and I have the XML parsed properly, the next thing to do would be to use the existing mesh building code and then figure out how to use the engine for collisions. I am not sure if I will need to attach a primitive to the camera to handle that or what.
Hardware exceleration...hmmmm...how would one go about getting that done?
Beg Adobe for it I guess 😉 I don't think there is any way to get hardware acceleration with some serious hacking of the flash player 🙂 Shockwave has hardware acceleration, but Adobe Director is very expensive and not as many people have Shockwave installed. Also it doesn't run on Linux. I would think that Flash would get hardware acceleration eventually, maybe within the next couple years.
Adobe Atmopshere had hardware acceleration. You could even choose between hardware and software in the GUI. So we know they have the code laying around...Seems like they could "just port the code" for to Flash. (joke, ar ,ar). Having worked with Adobe's development team, although peripherally, I have come to the conclusion that Adobe has to be convinced that there is money in it first.
One could do you as you say and decompile the Flash player, then develop the hardware accelerator and sell it to Adobe I guess, but why reinvent the wheel? Hrrrmmmm...
Well for now, I just want to get the physics thing working. I can worry about performance later. There is always the other way of doing things, which is to build light, dynamic and granular. Who was it that said "Why would anyone ever need more than 64k?" If you guess right, I will give you a cookie.