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.
Also tried with setting the model view matrix every frame. > Also, if you're drawing in 2d, why are you enabling depth testing? Just a random change to see if it'd change anything. > You might want to turn off face culling until you can see your drawing > for the first time. Not sure how if it affects line drawing, but might > help a bit, and not entirely sure why it would be necessary in a 2D > rendering. Alternatively, swap your near and far values around. Also played with the face/back culling. > Apart from that I'm not seeing anything wrong with your code. It turns out it was glOrthox, I didn't read the documentation clearly, I assumed it just wanted an integer, and not a fixed point value. Switched to glOrthof and things started working :) > On 1/22/2012 1:43 AM, 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 right, but you just can't see them. > > > > onDrawFrame is clearing to 1,1,1,1, and the rect is drawing 0,0,0,1, so > > it should be ok. > > > >> -clark- -- Thomas Fjellstrom [email protected] -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

