Giter VIP home page Giter VIP logo

Comments (11)

minggo avatar minggo commented on July 17, 2024 1

I think we should check extension to do it.

from cocos-engine.

minggo avatar minggo commented on July 17, 2024

Do you have a demo to reproduce it?

from cocos-engine.

Skroopa avatar Skroopa commented on July 17, 2024

just enable PostProcess for your project and on this specific Android device you will not see anything on the screen. In any case, I created an example for you: pp_bug.zip
I could help with testing, if it will be required.

from cocos-engine.

minggo avatar minggo commented on July 17, 2024

Have you tried on other Android devices? I don't have the specific Android device.

from cocos-engine.

Skroopa avatar Skroopa commented on July 17, 2024

no problems on other Android devices that I have

from cocos-engine.

minggo avatar minggo commented on July 17, 2024

The issue seems caused by it

E/Cocos: 21:47:46 [ERROR]: [SE_ERROR]  (C:/ProgramData/cocos/editors/Creator/3.8.3/resources/resources/3d/engine/native/cocos/bindings/manual/jsb_global.cpp, 1370): wrong number of arguments: 0, was expecting 1

Could you please print the javascript call stack by invoking ScriptEngine::getInstance()->getCurrentStackTrace()

from cocos-engine.

Skroopa avatar Skroopa commented on July 17, 2024

Doesn't look like it, something wrong with GLES setup itself. Texture cannot be created:

glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH24_STENCIL8_OES, 800, 480, 0, GL_DEPTH_STENCIL_OES, GL_UNSIGNED_INT_24_8_OES, nullptr)

from cocos-engine.

Skroopa avatar Skroopa commented on July 17, 2024

This line causes the issue:

case Format::DEPTH_STENCIL: return GL_DEPTH24_STENCIL8_OES;

And it must be:

        case Format::DEPTH_STENCIL: return GL_DEPTH_STENCIL_OES;

Since GL_DEPTH24_STENCIL8_OES is not supported on some devices with GLES2.0 backend (see Usage Example section). Could you make a PR? Or I could do this.

from cocos-engine.

minggo avatar minggo commented on July 17, 2024

@Skroopa thanks a lot. We can make a PR if it is not convenient for you to do it.

from cocos-engine.

Skroopa avatar Skroopa commented on July 17, 2024

yes please, create the PR.
NOTE: PostProcess doesn't work still, but this fix will help only with 0x501, 0x506 GL errors on texture creation.

from cocos-engine.

minggo avatar minggo commented on July 17, 2024

This line causes the issue:

case Format::DEPTH_STENCIL: return GL_DEPTH24_STENCIL8_OES;

And it must be:

        case Format::DEPTH_STENCIL: return GL_DEPTH_STENCIL_OES;

Since GL_DEPTH24_STENCIL8_OES is not supported on some devices with GLES2.0 backend (see Usage Example section). Could you make a PR? Or I could do this.

As less bit will have less precision. So i am not sure if it is a good idea to modify it for all android devices.

from cocos-engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.