[android-developers] Re: White screen in my OpenGL application

2009-10-27 Thread Steff
> Keep in mind that the > emulator doesn't have the OpenGL hardware of an HTC handset, so it's > not going to behave the same. Hmmm, it shouldnt be like that. OpenGL hardware should improve performace, but the sematics should be the same on all devices/ emulators with og without different kinds o

[android-developers] Re: White screen in my OpenGL application

2009-10-25 Thread Steff
> Do you need that pixel format so that you can draw translucently onto > an existing background or is it for some other purpose? The pixelformat is exactly for drawing translucently onto and existing background. Regards, Steff --~--~-~--~~~---~--~~ You received

[android-developers] Re: White screen in my OpenGL application

2009-10-25 Thread Robert Green
Steff, If you want to ensure device compatibility going forward, I'd recommend using the new GLSurfaceView class which was introduced in Android 1.5. It cleared up issues for me and I have to imagine that sticking to it will bring you the best results with new devices. Do you need that pixel fo

[android-developers] Re: White screen in my OpenGL application

2009-10-24 Thread Steff
I have tried to install the application on my HTC magic with "mGLSurfaceView.getHolder().setFormat(PixelFormat.RGBA_);". I works perfectly. When I comment out the line the graphics looks very strange on my HTC magic, but that is where it looks fine in the emulator. If the emulator cannot be tr

[android-developers] Re: White screen in my OpenGL application

2009-10-24 Thread Steff
Hi Well I use my own GLSurfaceView: public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback I did not know that a GLSurfaceView was added to the SDK. I will consider starting to use that, but I am pretty sure that it is not the problem right now. Or do you think it is? R

[android-developers] Re: White screen in my OpenGL application

2009-10-23 Thread Robert Green
The biggest thing for me that was added in 1.5 was the GLSurfaceView. I had issues but after switching to that everything worked everywhere like magic. Are you using that? On Oct 23, 12:01 pm, Steff wrote: > Hi > > I tried to remove all usage of texture in the app. That did not help. > > Now I

[android-developers] Re: White screen in my OpenGL application

2009-10-23 Thread Steff
Hi I tried to remove all usage of texture in the app. That did not help. Now I have narrowed it down: My application contains this line "mGLSurfaceView.getHolder().setFormat (PixelFormat.RGBA_);". If I comment out that line, then the OpenGL rendering works again. But I need that line, becaus

[android-developers] Re: White screen in my OpenGL application

2009-10-23 Thread Steff
My app used to work in the emulation of the SDK I used to use. It was downloaded almost a year ago. I believe it was 1.2 or something. So the app works in 1.2 emulator AND on my 1.5 firmware HTC magic. But it does not work on the 1.5 emulator of the 1.6 SDK downloaded today. I dont know if my tex

[android-developers] Re: White screen in my OpenGL application

2009-10-23 Thread String
Did it used to work on the 1.5 emulator? Keep in mind that the emulator doesn't have the OpenGL hardware of an HTC handset, so it's not going to behave the same. Having said that, my OpenGL stuff runs better on the 1.6 emulator than it did on 1.5. String On Oct 23, 3:43 pm, Steff wrote: > Hi >

[android-developers] Re: White screen in my OpenGL application

2009-10-23 Thread nEx.Software
I am assuming your textures are not power of 2 and square. On Oct 23, 7:43 am, Steff wrote: > Hi > > I've just dusted off an application I did for Android half a year ago. > I upgraded to the latest SDK and Eclipse ADT. After some struggeling I > get the application to run again. When I debug it