Coder Social home page Coder Social logo

Comments (7)

doggycoder avatar doggycoder commented on May 27, 2024

@starryfang 非常抱歉我这边没有你这个型号的手机,麻烦你尝试下打开TextureController.java,注释掉init()方法中的mGLView.attachedToWindow()试试。

from androidopengldemo.

starryfang avatar starryfang commented on May 27, 2024

@doggycoder 注释掉mGLView.attachedToWindow()代码后,可以正常打开相机2了,但Camera呈现的画面很暗,不知道这个问题与这句代码有关系吗,还是Camera的参数设置问题?

from androidopengldemo.

doggycoder avatar doggycoder commented on May 27, 2024

@starryfang 应该是Camera参数的问题,这句代码不会对Camera画面产生影响。

from androidopengldemo.

starryfang avatar starryfang commented on May 27, 2024

好的,谢谢~看您的博客attachedToWindow()方法在项目中有一定的作用,直接注释掉会不会在View状态发生变化时产生其他影响?

from androidopengldemo.

doggycoder avatar doggycoder commented on May 27, 2024

@starryfang 不会的。onSurfaceCreated的时候会调用attachedToWindow。

from androidopengldemo.

starryfang avatar starryfang commented on May 27, 2024

好的,多谢~

from androidopengldemo.

doggycoder avatar doggycoder commented on May 27, 2024

也多谢你的反馈

from androidopengldemo.

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.