Hello Guest

Author Topic: animated sprite  (Read 4768 times)

mike2d

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 63
    • View Profile
animated sprite
« on: March 28, 2013, 08:34:45 am »
hi,

i'm still trying to apply an animated sprite onto a 3d object.

i was wondering if i could use tk2d to create the spritesheet but my concern is the order of the frames layed out on the sheet. they're not side by side, ordered, left to right, bottum up or something "logical". so that could be a problem for my script that parses rows and columns in order...

any tip ?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: animated sprite
« Reply #1 on: March 28, 2013, 09:28:39 am »
If you need to play the animation on a 3d object, why don't you just create a sprite sheet manually? tk2d does a lot of optimizations for sprites - you can place them in 3d space, etc, but if you wanna use the texture for a model its going to be a fair bit of work. They are in an arbitrary order, they will also be trimmed (transparent bits removed) and then they could be rotated too. To make this work on a 3d model wont be trivial.

I don't know what you're doing, but you could in theory play the animation into a rendertexture, and use that on the model...

mike2d

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 63
    • View Profile
Re: animated sprite
« Reply #2 on: March 28, 2013, 09:32:12 am »
ok, that's what i've done so far. i've put all my frames in a grid manually and it works well.

i thought maybe my lovely tk2d could have helped me but no problem :)