Jump to content

non square Atlas TexturePacker


Recommended Posts

I have 2 atlas JSON Array export from TexturePacker. The first one is 2048x2048 and load perfectly, the second is 512x2048 and doesn't load:

this.game.load.atlas('atlas_interface', 'assets/images/textures_interface.png', 'assets/images/textures_interface.json');
Texture Error: frame does not fit inside the base Texture dimensions [object Object]

if i withdraw some images from my texture to get a square (1024x1024), loading works.


Atlas texture has to be a square ?


edit: i use Phaser 2.0.2

Link to comment
Share on other sites

No they don't have to be square. The error you're getting isn't because the overall image isn't square, it's because an image defined in the json file doesn't match the png it was given. Have you got texture packer set to rotate images to fit them in? If so that will break it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...