Hello Guest

Author Topic: Use sprite dicing and scroll UVs  (Read 7049 times)

vinnie035

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 20
    • View Profile
Use sprite dicing and scroll UVs
« 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?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Use sprite dicing and scroll UVs
« Reply #1 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.