Results 1 to 3 of 3

Thread: Fastest possible picture rotation

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    Rural Hall, NC United States
    Posts
    3

    Post

    Hello, I'm interested in creating a Mario Kart-esque game, and I need to be able to rotate the bitmap of the race track for every frame of animation. I was wondering if there was a very fast method of rotating the bitmap in which I could enter the center of rotation, and the size/coordinates of the area i want rotated. Any help is greatly appreciated.

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    Post

    Hi,
    I think it's not just rotating the bitmap, you also have to *stretch* each pixel! I really don't know a way to do that in VB. But Could be that Direct3D is fast enough...
    (And then you don't have to make this mode7 effect, just make it *real* 3D )

    Fox

    ------------------
    [email protected]
    ...
    Every program can be reduced to one instruction which doesn't work.


  3. #3
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355

    Post

    yeah, rotating a picture is very slow - the only reasonsably fast way in 2d is to use DirectDraw and use BltFx whcih lets you rotate. However, the hardware has to support it - there's no software emulation (Ms couldnt make it fast enough in software). And not all cards support it
    Basically, you're gonna have to have several pictures for each sprite, one at every 45 degrees, say.



    ------------------
    cintel rules
    www.cintelsoftware.co.uk

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width