AS3: Parsing .3ds file 2 - Rotating cubes
Wednesday, November 30th, 2005So how I swear to Keith Peters I’ve tried rotating model. with Octopus it was hard on my 1Ghz Athlon, but there is rotating but not smooth
So I just parse single Cube, then copy it to more Cube instances and rotate them.
Here are examples:
- 5 rotating cubes 36 FPS on 1Ghz Athlon
- 8 rotating cubes 25 FPS on 1Ghz Athlon
- 12 rotating cubes 12 FPS on 1Ghz Athlon
There is 3 examples because of testing FPS. This is just moveTo, lineTo API, i will try if drawing off screen, copying to bitmap, and copyPixels to screen will be faster.
Another point, I should check faces, and render just ones which are visible to user.
Enjoy.
tagged under:





8 Comments
JimmyH
• Visit Site
November 30th, 2005
Nice one mate… just to let you know the 12 rotating cubes runs at around 35fps on my work machine (i think a Pent2.8)
Al
• Visit Site
November 30th, 2005
I’m getting the same (35fps) on a 1.4ghz centrino.
Richard Leggett
• Visit Site
November 30th, 2005
Cool. Funny thing is I’m getting 65FPs on the 12 cubes, and only 45FPS on the 8 cubes. 3.5Ghz Athlon laptop.
Administrator
• Visit Site
November 30th, 2005
Richard, maybe you had some other task ran on your laptop when you play 8 cubes…
Marc
• Visit Site
November 30th, 2005
5 rotating:
60+ in firefox
64+ in ie
12 rotating:
47+ in ie
38+ in firefox
P4 2.6
Keith Peters
• Visit Site
November 30th, 2005
Haha. If you got that octopus rotating smoothly, I would give up and find a new career!
Awesome work by the way. Offhand, I’ve developed a set of bitmap drawing routines that use no vectors, just setpixel. I’ve found some pretty good performance doing it that way. They are not open source, but you can find them on IFBIN.
Administrator
• Visit Site
November 30th, 2005
Well, Keith, I want get octopus rotatins smoothly, but now I don’t. I don’t want to change your carrer, I think you enjoy it
Campbell
• Visit Site
January 10th, 2006
SWEEET dude! Nice work as always, how long till we see the Octopus framework go public?
Live Preview
Leave a comment