Click to See Complete Forum and Search --> : Fastest possible picture rotation
Moogle6811
Feb 1st, 2000, 04:47 AM
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.
Fox
Feb 6th, 2000, 02:43 PM
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
------------------
fox_mccloud@gmx.net
...
Every program can be reduced to one instruction which doesn't work.
KENNNY
Feb 8th, 2000, 04:27 AM
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 :p
www.cintelsoftware.co.uk
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.