I apologize for this thread. I have been having trouble with Google
Groups. I meant to post more but couldn't.

Had I posted the full code someone would have pointed out that my
index array was 1-based when it should have been 0-based.

I think that the openGL rendering code is unmanaged C, so I was
picking up an extra address that had garbage in it. That's why
sometimes the triangles rendered and sometimes they didn't.



On Aug 8, 11:27 am, Indicator Veritatis <[email protected]> wrote:
> What do you get with no texturing?
>
> On Aug 7, 7:53 am, Warren <[email protected]> wrote:
>
>
>
> > I am doing some very basic drawing of triangles in OpenGL, but I am
> > seeing strange rendering errors. When I draw a textured square (two
> > triangles) part of the square is missing or the texture is stretched
> > or corrupted. When I draw a square with no texture, part of the square
> > is missing sometimes.
>
> > I do not see a pattern to when it works and when it doesn't. It might
> > be broken one run, then after a back button and rerun, it works the
> > next.
>
> > The triangle that's missing is not one of the triangles used to draw
> > the square. Rather it is part of the first triangle and part of the
> > second triangle. The triangles are the bottom right half and the top
> > left half of the square, but the part missing is the bottom left half
> > of the square.
>
> > The problem occurs on both the Droid and on the emulator.

-- 
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

Reply via email to