Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - niall111

Pages: [1]
1
Support / Re: How do you deal with large animations and atlasing?
« on: May 07, 2014, 07:40:29 pm »
Two very interesting points I hadn't thought of!  The 32 bit thing explains why going from work PC with 8 gigs of RAM to home PC with 16 gigs made no difference, unity can only access 4 gigs of ram anyway.  Why do they keep claiming a 64 bit version is a low priority, because "it's not that necessary"?! 

And being somewhat new to tk2d, I didn't realize an animation could include multiple collections, that will certainly make this possible at least, thanks!

2
Support / How do you deal with large animations and atlasing?
« on: May 07, 2014, 01:59:34 pm »
I have approximately 500 frames worth of near full-screen animations.  Obviously it's not possible to atlas all of them in a single collection (not that I didn't try!) so I've taken to breaking them down into 30-50 frame chunks.  Image sizes are 768x1024 with alpha, I can fit about 10-12 frames on a 2048 atlas targetting ipad 1-2.  These smaller collections are then assigned to individual prefabs that i'm loading and unloading on the fly during animation, with barely a hiccup.  Memory usage stays well within limits as well, with only a single sprite collection loaded into memory at once.  Even an ipad1 performed admirably with this setup.  Stellar stuff, I'd say! 

Until it came time for the retina versions...  at 1536x2048, building 30-50 frames to a collection just runs into the Unity out-of-memory error.  Even adding them in smaller chunks to the collection and committing each chunk doesn't help, as it seems Unity/tk2d will still decompress all collection images into memory to optimally pack them. 

I don't suppose there's any way around this, other then further reducing the number of frames per collection, and having to load/unload them more often on the fly?  I'd love to have an "add" button next to the commit button, that will just create new materials/atlases and add them to the current collection, is that silly?  For example, I could bring in 12ish of the large frames at a time, knowing they will fit on a single atlas, commit that, then add another 12 frames, and hit my theoretical "add" button to create a second atlas? 


3
Support / Re: Frustration with tk2d
« on: May 07, 2014, 01:38:59 pm »
Don't you want to use PlayFromFrame then?

your line:
Code: [Select]
animator.Play( animator.Library.GetClipByName("Test_Interface_Animation").Reverse() );

could be:

Code: [Select]
animator.PlayFromFrame( animator.Library.GetClipByName("Test_Interface_Animation").Reverse(), animator.CurrentFrame );

Should do it?

Pages: [1]