Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17089

Sprite3D culling issue in v3.10

$
0
0

@madlexus wrote:

Hello!

After upgrading from 3.9 to 3.10 version, I found what the Sprite3D isn't culling anymore, when it has children nodes. Look at following code:

void Sprite3D::draw(Renderer *renderer, const Mat4 &transform, uint32_t flags)
{
#if CC_USE_CULLING
    // camera clipping
    if(_children.size() == 0 && Camera::getVisitingCamera() && !Camera::getVisitingCamera()->isVisibleInFrustum(&getAABB()))
        return;
#endif

My app became to lag and draws extra vertices in any camera position. How to resolve this culling issue?

Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>