Re: Drawing more than a certain number of triangles at one time/method/stack crash
Posted by loremipsum on Dec 17, 2015; 12:54am
URL: https://forum.jogamp.org/Drawing-more-than-a-certain-number-of-triangles-at-one-time-method-stack-crash-tp4035900p4035906.html
Well, I got it to work by switching to GL_QUADS. Maybe I had an array improperly initialized... don't know.
However, now I have a next issue:
I can only load textures with AWTTextureIO using a buffered image. TextureIO using a file crashes. Maybe it's meant to be that way. Who knows. GLJPanel issues.
BUT, when I draw, for example, green to the texure, the resulting color is always white. I tried making only a quarter of the texture green, and the rest black. I get a quarter white and the rest black. COLORS AREN'T WORKING!!
I already have GL_TEXTURE_2D enabled, obviously. And color material. The texCoord2f's are correct, cause the image is actually drawing as expected. Just no color...