Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About SSR animation effect #59

Open
yujinlin0224 opened this issue Feb 2, 2020 · 6 comments
Open

About SSR animation effect #59

yujinlin0224 opened this issue Feb 2, 2020 · 6 comments

Comments

@yujinlin0224
Copy link

Will SSR animation effect be supported? Which showed in gacha and home page when the background is an SSR and supported animation effect, like 100785 swing hair.

@summertriangle-dev
Copy link
Owner

It would be nice to have, but I'm not sure how to implement it. I can think of two ways but both have issues:

  • Render them client side using JS/WebGL. I would need a Spine license to distribute the libraries though.
  • Export them all to video, but that requires (a) the animations to perfectly loop and (b) a substantial amount of server time for rendering + encoding.

@yujinlin0224
Copy link
Author

yujinlin0224 commented Feb 3, 2020

Can you point out which patterns of filenames of game data files that those animations are packed in?
Are card_cartoon_*.unity3d?

@summertriangle-dev
Copy link
Owner

Yes, should be.

@applemiku
Copy link

My English is poor. I found that the card for Princess Connect Re: Dive has the same animation as the idol master.This site collects all the animations. Is it possible to refer to it?
https://redive.estertion.win/movie/

@yujinlin0224
Copy link
Author

@esterTion Do you maintain https://redive.estertion.win/movie/ ? Can you tell us how to do if the library of animations in Princess Connect Re:Dive also use Spine?

@esterTion
Copy link

It's not the same.
プリコネR is just a plain video file.

It is indeed spine animation for CGSS, but is much more complicated.

So you find all the resource for animation in card_cartoon_xxxxxx.u3d
There's first of all an overall background layer, the texture is combined using SP3Sxxxxxx_tex as rgb and SP3Sxxxxxx_tex_A8 as alpha channel
Then there's all sorts of other small texture for effects

The background layer has an atlas file for sprite cropping

Finally, there's bunch of skel file. This is a standard binary spine skeleton file, but note that spine-ts-webgl does not support SkeletonBinary reading.
In case you want to play with it, I've already done a port from other language, repo at esterTion/spine-runtimes and you can find the compiled js lib at https://redive.estertion.win/spine/

I once tried load the background layer, now I forget which one is it, I think it's SP3Sxxxxxx_bg.skel.
After you loaded, this is just background layer animation.
To add in the effects, you need to coordinate with other skel files, each responsible for an effect.
This is the part I’ve never tried.
( My previous experience on spine animation is all single model with different animations, not multiple model together )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants