Does Ren'Py support Live 2D?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Message
Author
User avatar
Andredron
Regular
Posts: 161
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: Does Ren'Py support Live 2D?

#91 Post by Andredron » Wed Jul 04, 2018 5:28 pm

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
I know, I have terrible English
I'm writing a Renpy textbook (in Russian). I would be glad if someone translated into an English or German textbook https://yadi.sk/d/ZX_DonP63USRru Update 22.06.18

User avatar
dvemail
Regular
Posts: 30
Joined: Sat May 28, 2016 1:50 pm
Projects: Working on Patronus
IRC Nick: dvemail
Deviantart: ObdurateDemand
Github: dvemail
Contact:

Re: Does Ren'Py support Live 2D?

#92 Post by dvemail » Sun Jul 08, 2018 8:40 pm

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.

User avatar
vollschauer
Veteran
Posts: 225
Joined: Sun Oct 11, 2015 9:38 am
Github: vollschauer
Contact:

Re: Does Ren'Py support Live 2D?

#93 Post by vollschauer » Mon Jul 09, 2018 1:12 am

Being able to use Live2D in Ren'Py would be awesome ....

asfdfdfd
Newbie
Posts: 9
Joined: Sat Oct 21, 2017 8:13 am
Github: asfdfdfd
Location: Saint Petersburg
Contact:

Re: Does Ren'Py support Live 2D?

#94 Post by asfdfdfd » Sun Jul 15, 2018 2:22 pm

Still preparing code for the open source release.

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


User avatar
renoa-heartilly
Regular
Posts: 113
Joined: Sat Jul 17, 2010 2:37 am
Completed: مقهى الضائعون, Arabic Translations for Ren'py, Pretty Please
Projects: حور, BB project, dentist drama
Organization: stanza studio (creative circle)
Contact:

Re: Does Ren'Py support Live 2D?

#95 Post by renoa-heartilly » Sun Jul 15, 2018 3:41 pm

wow that looks good!

User avatar
noeinan
Eileen-Class Veteran
Posts: 1075
Joined: Sun Apr 04, 2010 10:10 pm
Projects: Ren'Py QuickStart, Crimson Rue
Organization: Statistically Unlikely Games
Deviantart: daikiraikimi
Github: daikiraikimi
Location: Washington State, USA
Contact:

Re: Does Ren'Py support Live 2D?

#96 Post by noeinan » Sun Jul 15, 2018 4:25 pm

This looks great! I'm so excited for when it's ready, thank you for all your hard work!
Image

Image
Image

User avatar
Mole-chan
Veteran
Posts: 313
Joined: Thu Aug 27, 2009 12:46 am
Completed: DUAEL, Escape from Puzzlegate
Projects: A Bird with Gold-Mended Wings
Deviantart: mole-chan
Skype: mole-chan
Contact:

Re: Does Ren'Py support Live 2D?

#97 Post by Mole-chan » Thu Jul 26, 2018 10:54 pm

The live2D implementation looks aMAZING! Count me in as profoundly interested as well. Thank you so much for your amazing work on it.

asfdfdfd
Newbie
Posts: 9
Joined: Sat Oct 21, 2017 8:13 am
Github: asfdfdfd
Location: Saint Petersburg
Contact:

Re: Does Ren'Py support Live 2D?

#98 Post by asfdfdfd » Fri Aug 10, 2018 5:33 pm

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.

User avatar
Mole-chan
Veteran
Posts: 313
Joined: Thu Aug 27, 2009 12:46 am
Completed: DUAEL, Escape from Puzzlegate
Projects: A Bird with Gold-Mended Wings
Deviantart: mole-chan
Skype: mole-chan
Contact:

Re: Does Ren'Py support Live 2D?

#99 Post by Mole-chan » Fri Aug 10, 2018 5:52 pm

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.

User avatar
renoa-heartilly
Regular
Posts: 113
Joined: Sat Jul 17, 2010 2:37 am
Completed: مقهى الضائعون, Arabic Translations for Ren'py, Pretty Please
Projects: حور, BB project, dentist drama
Organization: stanza studio (creative circle)
Contact:

Re: Does Ren'Py support Live 2D?

#100 Post by renoa-heartilly » Fri Aug 10, 2018 7:25 pm

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!

asfdfdfd
Newbie
Posts: 9
Joined: Sat Oct 21, 2017 8:13 am
Github: asfdfdfd
Location: Saint Petersburg
Contact:

Re: Does Ren'Py support Live 2D?

#101 Post by asfdfdfd » Fri Aug 10, 2018 7:48 pm

Thank you :)

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

User avatar
dvemail
Regular
Posts: 30
Joined: Sat May 28, 2016 1:50 pm
Projects: Working on Patronus
IRC Nick: dvemail
Deviantart: ObdurateDemand
Github: dvemail
Contact:

Re: Does Ren'Py support Live 2D?

#102 Post by dvemail » 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

asfdfdfd
Newbie
Posts: 9
Joined: Sat Oct 21, 2017 8:13 am
Github: asfdfdfd
Location: Saint Petersburg
Contact:

Re: Does Ren'Py support Live 2D?

#103 Post by asfdfdfd » Sat Aug 18, 2018 1:42 pm

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.

User avatar
dvemail
Regular
Posts: 30
Joined: Sat May 28, 2016 1:50 pm
Projects: Working on Patronus
IRC Nick: dvemail
Deviantart: ObdurateDemand
Github: dvemail
Contact:

Re: Does Ren'Py support Live 2D?

#104 Post by dvemail » Sun Aug 19, 2018 10:02 pm

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.

asfdfdfd
Newbie
Posts: 9
Joined: Sat Oct 21, 2017 8:13 am
Github: asfdfdfd
Location: Saint Petersburg
Contact:

Re: Does Ren'Py support Live 2D?

#105 Post by asfdfdfd » Wed Aug 22, 2018 3:50 pm

I've got response from Live2D, so, probably, it may work out in the most pleasant way.

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

Post Reply

Who is online

Users browsing this forum: DragoonHP