[About macOS Ventura 13.0] (12/20/2022)
The currently released Live2D Cubism SDK is not guaranteed to work with macOS Ventura.
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[NOTICE]
About the support for Mac models
Cubism Editor is not supported with Apple M1 processors.
Please refer to
System Requirements for details.
We will not respond to any related inquiries with this message.
how to implement live2d clip?
hey there,
how to implement a live2d object clip in cocos2d-x? For example, if i just want a single part of a live2d character(Maybe head).
i tried using glscissor like this:
void LAppLive2DManager::onUpdate()
{
live2d::DrawProfileCocos2D::preDraw();
{
glEnable(GL_SCISSOR_TEST); <<======================
glScissor(300, 400, 100, 100); <<======================
}
L2DMatrix44 projection;
Director* director=Director::getInstance();
Size window=director->getWinSize();
projection.scale(1, window.width/window.height);
if (viewMatrix!=NULL)
{
projection.append(viewMatrix);
}
for (int i=0; iupdate();
model->draw(projection);
}
glDisable(GL_SCISSOR_TEST); <<======================
live2d::DrawProfileCocos2D::postDraw() ;
}
however,it didn't work. Did i use it in a wrong way, or should i try other solutions?
thanks
0 ·