Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9151947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:55:30+00:00 2026-06-17T11:55:30+00:00

The AndEngine framework for Android has a way to load textures into an atlas.

  • 0

The AndEngine framework for Android has a way to load textures into an atlas. The atlas way of loading textures was new to me and so I looked into it. From what I’ve read around the forums, an atlas is a large rectangular region of image data where the width and height have to be powers of 2 (although they don’t have to be equal, i.e. you can have a 512×1024 if you want). Textures are loaded into this region and this is used to keep them all in memory during the lifetime of the app. It allocates all of that space even if you don’t use some of it.

With that in mind, what process can I use to optimally place an arbitrary number of graphics into the same atlas? I don’t plan to do this at runtime within the app, but once all the graphics for my game have been created, I was hoping I could run the images and their sizes through some algorithm to determine how big to make the atlas and where each image should be loaded in it. Once I know those things, I can hard code their location for my game.

This is not an AndEngine or even Android specific question. I’m sure there are other graphics oriented frameworks that load textures this way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:55:31+00:00Added an answer on June 17, 2026 at 11:55 am

    I was about to post the question on Math.StackExchange.com but instead I found that it was already asked and already answered. There’s even a link to a CodeProject article that does this for CSS Sprites.

    EDIT: What I ended up doing in the long run was using a program called TexturePacker. Not only did it pack the images, it produced files to be used in AndEngine (as well as other supported platforms) and made the whole process easier for me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using andengine in my Android application and would like to display images from
I'm building an android game powered by AndEngine game framework. I'm using the following
I'm using AndEngine for my android game, I downloaded the master AndEngine from github,but
I've downloaded AndEngine sources from github and installed new Eclipse with ADT 20.0 (as
I'm creating and android game powered by andengine framework the box2d extension I'm getting
I'm using AndEngine to make a game for the Android platform. I need to
I'm using AndEngine/Box2d to develop a game. I have a ball that bounces around
I am new in AndEngine. I have import the andEngine.jar file in eclipse. But
I'm a beginner at Andengine, but I have read quite a lot of tutorials
Using datastore framework of appengine, what's the pythonic way to make persistent a {}?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.