cocos2d-x icon indicating copy to clipboard operation
cocos2d-x copied to clipboard

Render Texture is not rendering 3d sprites which are placed on z axis farther than -600

Open benifest opened this issue 4 years ago • 1 comments

  • cocos2d-x version: v4.0
  • devices test on: iMac (21.5-inch, Late 2015) Catalina

2d sprites work correctly.

auto winSize = Director::getInstance()->getWinSize();
getDefaultCamera()->initPerspective(60.0f, winSize.width / winSize.height, 0.1f, 4096.0f);

As i understand, render texture draws as orthographic and it is ignoring settings of default camera.

Z = 0 renderTexture

Z = -600 renderTexture

Z < -600 is just black screen

benifest avatar Jan 10 '21 10:01 benifest

Any comments about this?

benifest avatar Mar 04 '21 16:03 benifest