Sign in to follow this  

Loading rotated texture atlas

Recommended Posts

I have a texture atlas generated by Texture Packer with the "rotate" option is enabled.

In order to load & render all the frames correctly, now I have to use a simple script to pre-process the json file, swap the "w" and "h" properties if the frame is marked "rotated".

Is it possible to make a custom loader to load such texture atlas and store the restored frame in the cache

Share this post

Link to post
Share on other sites
On 3/12/2018 at 5:01 PM, AndreasLoew said:

If it's only swapping w and h it's easy to do this in TexturePacker's exporter.

But I think that you'll run in all kinds of issues with this in Phaser..?!


Thanks for reply. I just read this article and confirm that Phaser supports texture-atlas with rotation enabled, so I don't need any pre-processing now.

It seems that the comments of altas loaders are not updated, it still says that the "rotate" option in the atlas software must be disabled?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.