Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Please limit one question/topic per post.
Please provide the following details depending on types of question

▼ For question regarding Editor, please provide:
- Live2D Software Version: (e.g. Cubism Editor 3.1.02, Euclid Editor 1.2.02)
- OS & Version: (e.g. Windows 10, macOS HighSierra)
- PC Model: (e.g. MacBookPro 2017)
- Graphics Specifications: (e.g. GeForce GTX 950M)
- Memory: (e.g. 8GB)
- Illustration Software used: (e.g. Photoshop, ClipStudio, SAI)
- Attach screenshot or capture video to show your problem:
▼ For question regarding SDK, please provide:
- For us to reproduce the issue you wish to inquire about, please provide either a minimum project file which has the issue. or specific instructions on how to reproduce the issue.
- Types and version of Cubism SDK you are using.
▼ For question regarding Cubism Software License,
For issues related to purchasing, your order, license key, and subscription, please contact us via contact form:

how to implement live2d clip?

edited February 2016 in Archive
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()

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)

for (int i=0; iupdate();

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?

Sign In or Register to comment.