2D Toolkit Forum

2D Toolkit => Support => Topic started by: vinnie035 on March 05, 2012, 06:25:23 pm

Title: Use sprite dicing and scroll UVs
Post by: vinnie035 on March 05, 2012, 06:25:23 pm
I'm currently using 2D the dicing feature to split large textures and make them fit into smaller spritesheets. But I'd like to scroll some of these diced textures, using the scrolling UVs technique. Would there be one way to keep the benefits of this feature while making it work as wanted, or is it completely impossible to achieve such a thing?
Title: Re: Use sprite dicing and scroll UVs
Post by: unikronsoftware on March 05, 2012, 11:27:30 pm
Hi,

It won't be practical to support scrolling and diced sprites - it would just end up being far too complicated to be useful. Even scrolling a subUv image with normal sprites means actually storing much more than one "tile" of data to avoid having to create more and more polygons (you will still need to create exactly the right number of polygons split so each "tile" is covered by one polygon).

Its not impossible, but will require a lot of dynamic allocations and tessellation, something which is effectively going against the grain of efficiency.