[android-developers] Re: Rendering Problem with GLSurfaceView

2012-01-21 Thread ScheffsBlend
I can't figure out what I'm doing wrong. I think it might have to do with the colors you are using. You clear the screen with (0,0,0,1) and you draw with Colorado (0,0,0,1). Things may be working right, but you just can't see them. -clark- -- You received this message because you are

Re: [android-developers] Re: Rendering Problem with GLSurfaceView

2012-01-21 Thread Thomas Fjellstrom
On Sat Jan 21, 2012, ScheffsBlend wrote: I can't figure out what I'm doing wrong. I think it might have to do with the colors you are using. You clear the screen with (0,0,0,1) and you draw with Colorado (0,0,0,1). Things may be working right, but you just can't see them. onDrawFrame is

Re: [android-developers] Re: Rendering Problem with GLSurfaceView

2012-01-21 Thread Harri Smått
On Jan 21, 2012, at 7:43 PM, Thomas Fjellstrom wrote: On Sat Jan 21, 2012, ScheffsBlend wrote: I can't figure out what I'm doing wrong. I think it might have to do with the colors you are using. You clear the screen with (0,0,0,1) and you draw with Colorado (0,0,0,1). Things may be working

Re: [android-developers] Re: Rendering Problem with GLSurfaceView

2012-01-21 Thread Christopher Van Kirk
Could it be a missing modelview matrix? You're drawing everything at z of zero, and not specifying a model matrix. Maybe that means that the eye is sitting right where you're drawing. Try scrolling out a bit in the model and see if that helps. Also, if you're drawing in 2d, why are you

Re: [android-developers] Re: Rendering Problem with GLSurfaceView

2012-01-21 Thread Thomas Fjellstrom
On Sat Jan 21, 2012, Harri Smått wrote: On Jan 21, 2012, at 7:43 PM, Thomas Fjellstrom wrote: On Sat Jan 21, 2012, ScheffsBlend wrote: I can't figure out what I'm doing wrong. I think it might have to do with the colors you are using. You clear the screen with (0,0,0,1) and you draw

Re: [android-developers] Re: Rendering Problem with GLSurfaceView

2012-01-21 Thread Thomas Fjellstrom
On Sat Jan 21, 2012, Christopher Van Kirk wrote: Could it be a missing modelview matrix? You're drawing everything at z of zero, and not specifying a model matrix. Maybe that means that the eye is sitting right where you're drawing. Try scrolling out a bit in the model and see if that helps.

[android-developers] Re: Rendering Problem with GLSurfaceView

2012-01-20 Thread Alexander Mikhnin
Check this tutorial http://developer.android.com/intl/zh-CN/resources/tutorials/opengl/opengl-es10.html In addition there is class RectF. And it is a bad idea to allocate objects in render method. Do you have calls to GLSurfaceView.onPause and GLSurfaceView.onResume in your Activty's onPause and

Re: [android-developers] Re: Rendering Problem with GLSurfaceView

2012-01-20 Thread Thomas Fjellstrom
On Sat Jan 21, 2012, Alexander Mikhnin wrote: Check this tutorial http://developer.android.com/intl/zh-CN/resources/tutorials/opengl/opengl-e s10.html In addition there is class RectF. I bet it doesn't come with a render() mehod ;) This code is really just a proof of concept to get the GL