Page 7 of 10

Re: Does Ren'Py support Live 2D?

Posted: Wed Jul 04, 2018 5:28 pm
by Andredron
asfdfdfd wrote: Mon Jul 02, 2018 6:18 am
Andredron wrote: Sun Jul 01, 2018 6:31 pm th! cool! it seems that tyranobilder will soon begin to smoke nervously. Can you tell me how you ported that code from the githab? I tried to port it, but because of the low level, I even could not move ....

How I understood there without with с++ did not manage, or you modules used?
Solution is pretty straightforward but has several bumps on the way. I will opensource it later (no specific date, sorry, still requires a bit of work to be published) so everyone could try and improve.

Short description:
1. Live2D has two official libraries: Core and Framework. Core is closed source pure-C library. Framework is C++ opensource library that built atop of Core.
2. Framework has OpenGL rendering code that renders model on screen.
3. I've used Cython and a bit of custom C++ code to create Framework wrapper that compiles to binary Python module.
4. Next I've wrapped Live2D rendering so it renders to the FBO instead of screen.
5. At last i've wrote code that converts pixels from FBO to the RenPy render surface.
thank you very much for the information

Re: Does Ren'Py support Live 2D?

Posted: Sun Jul 08, 2018 8:40 pm
by dvemail
I am extremely interested in this effort. My game needs either Spine or Live2d really badly. I've sent you a DM and included a discord invite. I'd really like to discuss this with you in detail and see how I can help.

Re: Does Ren'Py support Live 2D?

Posted: Mon Jul 09, 2018 1:12 am
by vollschauer
Being able to use Live2D in Ren'Py would be awesome ....

Re: Does Ren'Py support Live 2D?

Posted: Sun Jul 15, 2018 2:22 pm
by asfdfdfd
Still preparing code for the open source release.

Meanwhile have improved performance a bit and now it has glorious 60 FPS.


Re: Does Ren'Py support Live 2D?

Posted: Sun Jul 15, 2018 3:41 pm
by renoa-heartilly
wow that looks good!

Re: Does Ren'Py support Live 2D?

Posted: Sun Jul 15, 2018 4:25 pm
by noeinan
This looks great! I'm so excited for when it's ready, thank you for all your hard work!

Re: Does Ren'Py support Live 2D?

Posted: Thu Jul 26, 2018 10:54 pm
by Mole-chan
The live2D implementation looks aMAZING! Count me in as profoundly interested as well. Thank you so much for your amazing work on it.

Re: Does Ren'Py support Live 2D?

Posted: Fri Aug 10, 2018 5:33 pm
by asfdfdfd
I've cleaned up code a bit and released to the github.

https://github.com/asfdfdfd/renpy-live2d

This is still not a production version. This is WIP intended for developers that want to help.

There are instructions only for macOS. I do not have time and will to install Linux but instructions for Linux should be the same.

Windows version is blocked by Live2D developers that does not have Core prebuilt for MSVC 9. Probably they will do it. If not i have one workaround in mind and i will implement it in the worst case.

Re: Does Ren'Py support Live 2D?

Posted: Fri Aug 10, 2018 5:52 pm
by Mole-chan
Aah! How exciting!!

Unfortunately, I'm using Windows, so I'll have to wait to play around with it. But, I'm looking forward to it! Hopefully Live2D gets back to you promptly.

Re: Does Ren'Py support Live 2D?

Posted: Fri Aug 10, 2018 7:25 pm
by renoa-heartilly
wow thanks a lot asfdfdfd :D i'm also on windows and by no means a programmer, so i'll be supporting from the sidelines XD tell me if you need anything in the way of assets or how things work, as i've worked closely with the Live2D app for a few years!

Re: Does Ren'Py support Live 2D?

Posted: Fri Aug 10, 2018 7:48 pm
by asfdfdfd
Thank you :)

Obviously this thing is absolutely useless without Windows support so i'll focus on this for the next update.

Re: Does Ren'Py support Live 2D?

Posted: Fri Aug 17, 2018 11:13 am
by dvemail
I've got one of my devs looking at your code to see if we can throw some Win support in your direction. I'll know more in a few days

Re: Does Ren'Py support Live 2D?

Posted: Sat Aug 18, 2018 1:42 pm
by asfdfdfd
dvemail wrote: Fri Aug 17, 2018 11:13 am I've got one of my devs looking at your code to see if we can throw some Win support in your direction. I'll know more in a few days
Great!

My code is almost ready for Windows except several small places. Main issue is that Live2D Core lacks support of MSVC9. So it could not be built as Python extension on Windows.

The only sane workaround i have on my mind is to build Live2D Core as DLL, load it dynamically and get function pointers at runtime.

But i hope to receive response from Live2D guys. :| Probably someone here has better contact with them than i have.

Re: Does Ren'Py support Live 2D?

Posted: Sun Aug 19, 2018 10:02 pm
by dvemail
asfdfdfd wrote: Sat Aug 18, 2018 1:42 pm
Probably someone here has better contact with them than i have.
Doubtful, there's more likely good connections between the Unity folks and Live2d than anyone using RenPy.

Re: Does Ren'Py support Live 2D?

Posted: Wed Aug 22, 2018 3:50 pm
by asfdfdfd
I've got response from Live2D, so, probably, it may work out in the most pleasant way.

https://github.com/asfdfdfd/renpy-live2 ... -414949889