Re: Learning JOGL and related topics.
Posted by millerni456 on Aug 12, 2011; 4:31am
URL: https://forum.jogamp.org/Learning-JOGL-and-related-topics-tp3167983p3248277.html
Again thanks for all the help. I really appreciate all the effort you are putting towards this.
I wanted to share that I have multiple textures running! It was merely chance that got this going, but anyways... I was using the 'Texture' class found in the package "com.jogamp.opengl.util.texture". Turns out there is a method for updating the image Anyways I was able to update the image in between my drawings, and now have a multi-textured cube!
Although I'm excited to have gotten this working, I still have to consider if this is the proper way to have multiple textures.
The whole reason I came to learn OpenGL is because I wanted to make some huge games. So I do have one question:
"How should I go about managing hundreds of textures?"
Currently, I have an array of "TextureData" objects (also in the same package). Each data is then used when I need to update the texture:
texture.updateImage(gl2, textureData1);
Texture is the current texture used by OpenGL, and textureData1 contains our image.
Thanks once more for all the help! I hope I can get some shaders running soon!