ElBueno

  • 2014年5月15日
  • 2014年2月12日に参加
  • Will do. I'll report back when I've tried it.

  • Nate wrote

    the position of each attachment can be different for each skin.

    The thing with that is, that puts my attachments in new places relative to my bones, which will change how they behave with the same animations. So I guess I should try the addition trick, then?

  • I just hit a need for exactly this. Excellent idea, carmandale. I'll be sure to try it ASAP.

    The only downside is it seems like I can only try this in-engine. Is there a way to mix animations in the Spine editor itself?

    While were at it, is the ability to reposition bones in different skins something that could possibly be added as a core feature?

  • I figured it was that. I get z-fighting with the cutout shader, but that's the only other one I've tried apart from the Spine shaders.

  • @wrongtarget: Could the separation in the parts have something to do with the 0.1m separation along the z-axis that bones are arranged on (according to draw order in the Spine editor)? Try changing SkeletonComponent.zSpacing to 0.0f and see what happens.

    I just started this thread where I ask why zSpacing is set to 0.1f right now: viewtopic.php?f=7&t=2121
    I'm curious to see if setting it to 0.0f breaks anything with your shader.

    Disclaimer: I don't know the first thing about writing shaders. 🙂

    • 編集済み
  • Got a question for the dev handling the Unity runtime (not sure who, hopefully they'll see this). I'm glad to see that Draw Order is now supported, but I notice that bones are still being sorted along the z-axis in 0.1 m increments. The draw order is still respected in Unity if I change SkeletonComponent.zSpacing to 0.0f, so I'm wondering if there is a specific reason why this property is set to 0.1f right now.

    I need all of my bones to be on the same z-plane because I'm using a scale factor of 1024px per meter and a perspective camera, so these 0.1 m increments along the z-axis make a big difference. Manually setting zSpacing to 0.0f is fine for now, but I wanted to make sure this wasn't going to break anything down the road. 🙂