PDA

View Full Version : GL 32bit texture cookie cut, with Alpha?



bigsofty
12-01-2008, 04:12 AM
What is the quickest way to create/cookie cut a texture from a larger texture.

This would result in a new smaller texture, with its texture being made up from a small section copied from the larger texture.

And most importantly, preserving all the Alpha channel data.

Thanks in advance.

waran
12-01-2008, 08:39 AM
Actually it would be the best way to leave the tex in one piece.
To control which part of the tex is shown on your quad use texture
coordinates.

If you still need to copy a special section you could also do it manually
since a picture is nothing else than a stream of (4) bytes.
Note: OpenGL isn't designed for image processing. What you need
is ImageMagick :)