Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I want to split a long png from my artist into vertical chunks that I can load into my code for a side scroller.

Is there a tool that will help do that or do I have to do it manually?

share|improve this question
1  
Couldn't you just keep it as one texture and render parts? –  The Communist Duck May 1 '11 at 10:30
    
although not specifically what I was asking, this is the correct answer. The library I am using supports 'atlas' images. Make your comment an answer and will accept it. –  Gregor Brandt May 2 '11 at 19:44
add comment

2 Answers 2

up vote 5 down vote accepted

Use a texture atlas, or a tilesheet of some kind. One texture in video memory is much less work than 100 textures in video memory.

share|improve this answer
add comment

Try http://www.imagemagick.org/ which you can control from the command line to process images.

share|improve this answer
    
imagemagick does the job, but the comment above is 'more correct' in that I should be using an atlas and taking textures from there. thanks. –  Gregor Brandt May 2 '11 at 19:45
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.