Comments (7)
@starryfang 非常抱歉我这边没有你这个型号的手机,麻烦你尝试下打开TextureController.java,注释掉init()方法中的mGLView.attachedToWindow()
试试。
from androidopengldemo.
@doggycoder 注释掉mGLView.attachedToWindow()代码后,可以正常打开相机2了,但Camera呈现的画面很暗,不知道这个问题与这句代码有关系吗,还是Camera的参数设置问题?
from androidopengldemo.
@starryfang 应该是Camera参数的问题,这句代码不会对Camera画面产生影响。
from androidopengldemo.
好的,谢谢~看您的博客attachedToWindow()方法在项目中有一定的作用,直接注释掉会不会在View状态发生变化时产生其他影响?
from androidopengldemo.
@starryfang 不会的。onSurfaceCreated的时候会调用attachedToWindow。
from androidopengldemo.
好的,多谢~
from androidopengldemo.
也多谢你的反馈
from androidopengldemo.
Related Issues (20)
- Field requires API level 15 (current min is 11): `android.opengl.GLES11Ext#GL_TEXTURE_EXTERNAL_OES` HOT 1
- 图片(bitmap)有锯齿,怎么办? HOT 1
- 可以加一下微信嘛 有些技术问题请教一下 HOT 3
- 有百叶窗效果吗 HOT 1
- Android播放帧动画,效果很奇怪 HOT 1
- 相机美颜可以录视频吗? HOT 1
- OpenGL 如何设置绘制的窗体背景透明
- 加载obj格式
- 从零开始的Demo ?
- VR效果似乎没有东西显示出来? HOT 1
- ZipPkmAnimationFilter与WaterMarkFilter一起使用的时候,前者的Alpha丢失。
- 有点卡...
- How to make a skybox ?
- 3.1
- Camera上可以增加视频/动画的代码吗? HOT 1
- 3D模型示例的问题,以及解决方法 HOT 1
- images HOT 1
- 魅族Pro6手机camera2渲染失败
- 关于FBO与RBO绑定和内存占用的问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from androidopengldemo.