Giter VIP home page Giter VIP logo

Comments (2)

ongakuer avatar ongakuer commented on June 22, 2024

抱歉,高斯模糊滤镜只是仿造GpuImage写的,视频上无法运行,GL_TEXTURE_EXTERNAL_OES 的FBO多次处理我不会,怎么调试都没走通…… 如果能走通了话,FilterGroup就可以使用了……

另外,相机纹理和叠加纹理旋转是存在Bug的。应该是当拿到相机纹理矩阵(texMatrix)后,先旋转处理好,mvpMatrix则使用默认值,这样其他叠加纹理才是没有旋转过的。

from camerafilter.

wnpllrzodiac avatar wnpllrzodiac commented on June 22, 2024

我现在的情况是 已经可以运行2 filter的情况。

CameraFilterGaussianBlur.java
修改为

addFilter(new CameraFilterGaussianSingleBlur(context, blur, false));
addFilter(new ImageFilterGaussianSingleBlur(context, blur, true));

即可。
这个也是琢磨了许久,想到的。
如果出来的画面旋转+被放大裁切了。
原因我想应该是 两个纹理大小不同导致。
camera preview的size为 640x480 而我测试手机的屏幕分辨率是 1280x720 导致几次纹理渲染时,位置发生了错位。
你的处理中用到了 FBO FRenderd等,不是很清楚其原理。

还有个问题。我发现Surfacechanged 时设置glViewPort(0,0,w,h) 只是让显示全屏。如果设置为w/2 h/2.
只是显示的位置变化了。还是完整的画面。andorid的ogles默认的vertex 坐标就是归一化为 (-1,1)对应为视口的全屏范围?没有看到 设置 平截头 或者正交投影的 地方。

你有qq方便联系吗?周围是在找不到交流opengles这块的人。
我的qq 364953305

from camerafilter.

Related Issues (10)

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.