EffectNodes-for-cocos2dx icon indicating copy to clipboard operation
EffectNodes-for-cocos2dx copied to clipboard

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

Open kawaiSky opened this issue 9 years ago • 0 comments

在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上左侧被裁减的很严重

kawaiSky avatar May 28 '15 17:05 kawaiSky