This issue still has no answers. Render Texture is not rendering 3d sprites which are placed on z axis farther than -600 · Issue #20639 · cocos2d/cocos2d-x · GitHub
Any comments?
This issue still has no answers. Render Texture is not rendering 3d sprites which are placed on z axis farther than -600 · Issue #20639 · cocos2d/cocos2d-x · GitHub
Any comments?
We haven’t updated 3D in a while, does this same issue happen in 3.17.2?
I have not tried it in 3.17.2. The team of cocos recommends use 4.0 for new projects
Who told you that? I’m part of this team and I’ve never told anyone that.
I apologize. This issue is not related with render texture. But there is an another problem:
What i see:
What render texture does:
auto winSize = Director::getInstance()->getWinSize();
getDefaultCamera()->setPosition3D(Vec3(0.0f, 0.0f, 1800.0f));
getDefaultCamera()->initPerspective(60.0f, winSize.width / winSize.height, 0.1f, 14096.0f);
renderTexture = RenderTexture::create((int)winSize.width, (int)winSize.height, backend::PixelFormat::RGBA8888);
renderTexture->retain();
renderTexture->setKeepMatrix(true);
renderTexture->getSprite()->getTexture()->setAntiAliasTexParameters();
renderTexture->beginWithClear(0.0f, 0.0f, 0.0f, 1.0f);
visit();
renderTexture->end();
Director::getInstance()->getRenderer()->render();
I’ve tried to do the same. And can’t understand where I made mistake.