PNG Animation Util??

BlitzPlus Forums/BlitzPlus Programming/PNG Animation Util??

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

To turn tachneedle.bmp into 360 seperate frames I used this code:
; Breaks Needle into 360 frames
; and places them into a 'need' dir
; Process will fail if 'need' directory doesnt exist
Needle = LoadImage("tachneedle.bmp")
tmp = CreateImage(264, 264)

For i = 0 To 359
	RotateImage Needle, i
	SetBuffer ImageBuffer(tmp): Cls
	DrawImage Needle, 132, 132
	SaveImage tmp, "need/img" + i + ".bmp"
	FreeImage Needle: Needle = LoadImage("tachneedle.bmp")
Next

If we were to combine all those frames into one AnimImage strip then it would be 95,040 x 95,040. This is simply not feasible for load time and video memory concerns. This is why I think a frame by frame loading animation technique would work best. Download this project which includes a mock up example and all 360 frames created with the program above. This method has zero load time and will only use the total vid memory of one frame, instead of them all. If this works out for you then your biggest worry will be finding a mass bmp->png converter. Im sure it wouldn't be too hard with the proper command line tool and a batch file.