glsurfaceview

Seekbar progress changed but GLSurface view not affected

谁说我不能喝 提交于 2019-12-13 04:57:32
问题 I am developing app in which i want to give brightness to my GLsurfaceView on progress changed of Seekbar. The progress changed but GLsurfaceView can't be effected means i can't increment or decrement brightness eventhough color are also not applied to GLSurfaceview.. I have tried for that. But nothing happen. Appropriate for your help Thanks in Advance!! My Code is Here: EffectActivity.java: public class EffectsActivity extends FragmentActivity implements OnTouchListener, OnClickListener,

VideoView in ViewFlipper is transparent when video is playing

无人久伴 提交于 2019-12-12 09:53:56
问题 I've got an Activity with two views set up in a ViewFlipper. One of the views is a layout with a GLSurfaceView and a few other widgets, the other just has a layout with a TextView and a VideoView. When I click on something in the GLSurfaceView, the ViewFlipper swaps so the video can play. In this screenshot, you can see the plain GLSurfaceView rendering a map on the left. On the right is what it looks like after the ViewFlipper has flipped and the video starts playing. The empty transparent

Android: How do I resize the GLSurfaceView so I can add buttons around the outside?

痞子三分冷 提交于 2019-12-12 09:18:43
问题 I have a 3d model viewer, but I want to modify it, so hear are some questions/issues: (OpenGL ES 2.0) 1. Is it possible to change the GLSurfaceView dimensions (height and width) to something like 600 x 800 and centered on the device (tablet) screen? I want to use the unused area to line buttons around the outside. 2. Is it possible to resize glSurfaceView in XML? 3. Is there a way to set an XML layout on top of the screen? 4. Is it possible to set a background color under the rendering so

Manipulate a Custom GLSurfaceView in Android

断了今生、忘了曾经 提交于 2019-12-11 12:09:00
问题 I have a Custom GLSurfaceView created by D.J.I. The video rendering is done by their own compiled class and it allows only one GLSurfaceView to receive their encoded video. I would like to multiply the video output on the screen to view with a V.R viewer, but not sure if it is possible. I know that by coping their custom GLSurfaceView I can do some manipulation, such as controlling the size of the video output. (if I change this line: "SplitDjiSurfaceView.w = width;" to "width/2") I'll get

Creating a gl texture outside of GLSurfaceView.Renderer?

和自甴很熟 提交于 2019-12-11 02:23:57
问题 Is there a way to create gl textures outside of my implementation of GLSurfaceView.Renderer? I've only been able to create textures in the onSurfaceCreated method, since that's where I have access of the GL10 gl variable. It's limiting me because I can't create open gl textures on demand in my code and have to create everything in that method. Alternatively, is there a way to get at the GL10 gl variable outside of the GLSurfaceView.Renderer? Or is there even another way to create gl textures?

Adapting Grafika RecordFBOActivity to work with Android GPUImage

柔情痞子 提交于 2019-12-11 02:21:23
问题 I have an application that is using the Android port of GPUImage as the OpenGL Renderer and manager of several filters. It currently does not have a video implementation, so I am trying to adapt the RecordFBOActivity from the Google grafika repository to work with the GPUImage architecture. The base GPUImage class manages the GLContext and GLSurfaceView, and the GPUImageRenderer class implements the Renderer class. This is the class where I am trying to adapt the RenderThread from the

[Cocos2d]How to Create bitmap from GlSurfaceView

北城以北 提交于 2019-12-10 17:31:43
问题 How can I take screen shot of Glsurfaceview in Cocos2d. I tried with following code using GLsurfaceView GlsurfaceView glv=CCDirector.sharedDirector().getOpenGLView(); glv.setDrawingCacheEnabled(true); Bitmap bitmap=glv.getDrawingCache(); but it return transparent image. 回答1: I got answer from this anddev forum question I attached code along with this hope somebody will find this helpful Please Put this code inside renderer class onDraw Method inside starting. public static Bitmap SavePixels

GLSurfaceView onDrawFrame clearing behavior

家住魔仙堡 提交于 2019-12-10 13:24:41
问题 I ran into different behaviors with the GLSurfaceView. AFAIK it is the responsibility of the program to clear the buffer (color and depth ) each frame. Which means that if I don't clear the buffer I get the content of the last frame ( or the one before that for double buffering ). It seems though as if the buffer is cleared no matter what on some devices. I ran the following modification of the "Hello Triangle" program from the Addison Wesley OpenglES2.0 Programming Guide on some test devices

Android Camera Live Filter

不打扰是莪最后的温柔 提交于 2019-12-09 16:45:36
问题 What is the best way for Camera Live filters. I am recently using GPUImage Library from Link: https://github.com/CyberAgent/android-gpuimagelibrary. Than I have found SurfaceView and GLSurfaceView. Problem is: How to apply live filter to camera using SurfaceView or GLSurfaceView. Thanks in advance. 回答1: This link uses Texture View https://github.com/google/grafika/blob/master/app/src/main/java/com/android/grafika/LiveCameraActivity.java This uses surface view to play a movie..u can manipulate

Putting textview on top of GLSurfaceView

こ雲淡風輕ζ 提交于 2019-12-08 13:46:54
问题 Please point me to any links for putting textview on GLSurfaceView.I want to show some varying number in textview. The GLSurfaceView example i am following http://www.learnopengles.com/android-lesson-one-getting-started/ I have modified OnDraw function as follows to calculate fps. I want to show this fps on GLSurfaceView but i am not understanding how can i do this. Regards, Mayank 回答1: A sample code. setContentView(view); mTextView = new TextView(this); mTextView.setText("YourText");