Hi, everybody
Just started playing with JOGL and following the examples in the red book, tried to create a 3D model. The first question is about creating a custom 3D model and shading it - i see seams all over the place. It looks like the quad strips are broken into triangles and the edges are not rendered properly. When i use a “bundled” 3D model (glutSolidTorus), it is rendered without seams. I searched for it on the web and the explanations there seem to be way too complicated for such a simple issue. Is there something i’m missing in the source code (run the attached and see that the torus has seams)?
In addition, i’ve played a little with custom textures and TextureIO and different modes to pass to glTexEnvf. If i create a custom texture as a bytearray, all four modes (DECAL, REPLACE, BLEND, MODULATE) work as expected, but when i load a texture from a JPG file using TextureIO, then the BLEND mode uses an invert of the original JPG image (run the attached and see that the torus is painted green-blue instead of red). Is this a known issue or something wrong in the attached program?
Thanks
Kirill