AS3: Parsing .3ds file 2 - Rotating cubes

Wednesday, November 30th, 2005

So 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:

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.

AddThis Feed Button

This is some text prior to the author information. You can change this text from the admin section of WP-Gravatar  I'm living in Bratislava, Slovakia. I'm Senior Flex, AIR Developer for my own company Flexets. Read more from this author


tagged under:

ABOUT THIS AUTHOR

I'm living in Bratislava, Slovakia. I'm Senior Flex, AIR Developer for my own company Flexets.

Get a Trackback link

8 Comments


  1. 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)


  2. Al
    Visit Site
    November 30th, 2005

    I’m getting the same (35fps) on a 1.4ghz centrino.


  3. 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.


  4. Administrator
    Visit Site
    November 30th, 2005

    Richard, maybe you had some other task ran on your laptop when you play 8 cubes…


  5. 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


  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.


  7. 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 :)


  8. 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

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">

This site is using OpenAvatar based on
Images is enhanced with WordPress Lightbox JS by Zeo
Clicky Web Analytics