Jump to content
  • Advertisement
Sign in to follow this  
captacha

Rotating Images

This topic is 2477 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm making a physics game and I need to have rotated images for each of the objects in the game. Any way to make a script in gimp that rotates the images 1 degree and then saves them?

Share this post


Link to post
Share on other sites
Advertisement
That seems like an awful lot of images when the game should be able to directly render the image slightly rotated...

Share this post


Link to post
Share on other sites
As Telastyn mentioned, for every one image in your game (of which you'll probably have over a hundred), you'd have to create 360 copies of it, each slightly rotated. That's alot of wasted memory.

Pick an API that can just draw a single image rotated in whatever way it wants. Most hardware accelerated 2D or 3D APIs can do this.

If your API of choice can't do that, then for games you really only need to do one image per every 15 degrees or rotation, or perhaps even less (every 22.5 degrees or something).

Every 1 degree = 360 images for every one image you want to rotate.
15 degrees = 24 images for every one image you want to rotate.
22.5 degrees = 16 images
45 degrees = 8 images

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!