Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

If you have any questions, reports, suggestions, or requests about Live2D, please send them to this forum.
※We cannot guarantee statements or answers from Live2D staff. Thank you for your understanding in advance.
 
Live2D Cubism
Cubism Products and Downloads
Cubism product manuals and tutorials
Cubism Editor Manual    Cubism Editor Tutorial    Cubism SDK Manual    Cubism SDK Tutorial
[About macOS Sonoma 14.0] (update 10/17/2023)
The current compatibility status with released Live2D Cubism products is as follows:
[supported]Live2D Cubism Editor version 5.0.01 and later
[not supported]Live2D Cubism Editor version 5.0.00 beta1 and earlier,Other Live2D Cubism products, including Live2D Cubism SDK.
Please refrain from upgrading the macOS as they may not work properly.
The Cubism Editor license file may be lost after the macOS upgrade.
Please make sure to deactivate the Cubism Editor license before upgrading the macOS.
For more details

how to display models to the SDL2 window screen with OpenGL ( C++ )

I recently learned to how use live2d sdk for native, and because of this I also had to learn computer graphic programming, but there was a little difficulty in how to display the live2d model to the screen.

I know there is a sample source code for that (https://github.com/Live2D/CubismNativeSamples/tree/develop/Samples/OpenGL/), but it looks like the code is very complex so I am very difficult to understand it, like what does CubismOffscreenFrame_OpenGLES2 mean, different functions between LAppView::PostModelDraw and LAppView::PreModelDraw, the meaning of the uvVertex variable.


I also found another reference about displaying the model to the screen using c ++ (https://github.com/HTTdesu/SimpleFacerig/blob/master/SimpleFacerig/main.cpp)
but the version of live2d used is outdated, even though it's quite simple there works.

is there another simple example to display the model to the screen with c ++ and opengl? no need with motions, physics, setParam, etc. I just want to see an overview of the model.

This is the file main.cpp that I'm working on, I know this code is bad because of my ignorance about c++ and opengl. When run the program only displays a color according to the glClearColor(0.2f, 0.2f, 0.2f, 1.0f);



But why is the model not displayed on the screen I still don't understand. Is there someone who wants to help me?

Best Answers

Answers

Sign In or Register to comment.