Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ripple特效,使用render texture截图的时候显示不全 #6

Open
kawaiSky opened this issue May 28, 2015 · 0 comments
Open

ripple特效,使用render texture截图的时候显示不全 #6

kawaiSky opened this issue May 28, 2015 · 0 comments

Comments

@kawaiSky
Copy link

在ripple demo 中,在ripple node 下添加一个背景

    auto bg = Sprite::create("demoRes/tableCloth.png");
    bg->setPosition(Vec2(visibleSize.width/2 , visibleSize.height/2));
    this->addChild(bg);

然后执行 render texture 截屏

   auto render = RenderTexture::create(visibleSize.width, visibleSize.height);
   render->begin();
   Director::getInstance()->getRunningScene()->visit();
   render->end();
   Director::getInstance()->getRenderer()->render();
   this->addChild(render,10,"render");

正常显示

12 47 03

使用RenderTexture 截的图
12 47 05

可以看出 图片的左侧和下侧 都没有显示全,
而在我自己的竖屏项目中,iphone基本可以正常显示,没有太明显的裁减的情况,但是在ipad上左侧被裁减的很严重

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant