Re: Binding multiple textures using the jogamp Texture class

Posted by gouessej on
URL: https://forum.jogamp.org/Binding-multiple-textures-using-the-jogamp-Texture-class-tp4032717p4032719.html

Hi

JMonkeyEngine 3 already supports Blender and I can show you how to import your JSON file in JogAmp's Ardor3D Continuation if you want. Only create your own scenegraph for pedagogical purposes, not for production use. Developing and maintaining a scenegraph is time consuming.

I don't advise you to mix the Texture class with low level OpenGL calls even though it might work. You should enable the texture target only once. You can go on binding a texture and using a particular texture unit.

I'm not a specialist of shaders but I know that a sampler must have a texture unit assigned to it before its use in a shader, use glUniformli with glGetUniformLocation to do that.
Julien Gouesse | Personal blog | Website