Get triangles from an image file

Hi everyone:

I have an image file and the coordinates of the triangles that the GL object uses to cut the image and draw the differents parts. I use the method “glTexCoordPointer” of the GL object to assign the Texture coordinates.
Is there any way to get a different BufferedImage from each triangle of the image that the GL object creates?

Thanks.

Hi!

Why don’t you use multi-texturing (a texture unit per image for example)? What you say is a bit confusing.

Sure. Simply render each triangle to the framebuffer, and use glReadPixels to read back the rendered pixels.

I´m going to take a look what you say.
Thanks to both for the answers :slight_smile:

Just saying: multi-texturing won’t get you anywhere.

You’re right, I have just read once again what he wrote and I find myself stupid.