Just in case someone missed it last time: ASE parser is present in every flash 3D engine, and since now it doesn’t even need any 3D engine at all. That’s right, I just converted my little parser to work with Flash player 10 native 3D support! Well, sort of – I just tweaked senocular drawGraphicsData() example to display that famous shuttle model instead of sphere. Enjoy the demo and sources.
Advertisement
I have found that Mike Lively did similar thing for his homebrew XML format exported from Blender, just like you would do with ASE, anyway. Unless you have expensive software that can cook ASE files natively :)
Thank you – this is wonderful! I can import any .ase file and play about with it in actionscript.
One thing that confuses me however is when I transform a mesh along the z axis. When it gets to the point where it should be behind the camera, instead of disappearing it inverts itself and starts to move further from the camera.
Do you have any idea why this is happening and what can be done to stop it?
Faces partially or fully behind the camera do not disappear because they are still listed in IGraphicsData vector, when you call graphics.drawGraphicsData().
Easiest thing you can try is to filter these faces out during z-sorting phase. Complete solution would be face clipping, but it is quite complex thing to do (for example, Away3D team still have not implemented it).