Hey everyone!
So, I've got asset loading working, and AssImp has made my life so much better. That said, I'm trying to use GLTF, and I can't seem to wrap my head around the proper usage of embedded textures.
I understand that AssImp loads the texture from the glb file directly. And I get that when the filename is something like "*1" it means that it is an embedded texture.
Here's where I am stuck. I load a GLB, I recognize that it has an embedded texture and then I want to bind it to a GL Texture. Normally I'd use "glTexImage2D" but I need access to a ByteBuffer to pass it.
Am I missing something here? I know there are a whole host of aiGet* methods I am not super familiar with, but I'm at a loss here.
Thanks for the help!
-
Daniel Jackson