Bug 131

Summary: Incorporate texture loading and screen grabbing utilities
Product: [JogAmp] Jogl Reporter: Sven Gothel <sgothel>
Component: coreAssignee: Sven Gothel <sgothel>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 1   
Hardware: All   
OS: all   
Type: FEATURE SCM Refs:
Workaround: ---

Description Sven Gothel 2010-03-24 07:47:18 CET


---- Reported by kbr 2005-01-18 16:06:36 ----

The JOGL community has developed several useful utilities including texture
loaders and screen grabbing facilities that should be incorporated into the
source base under the net.java.games.jogl.util package. Pointers to these
facilities:

http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1105653528;start=0#7
http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1058674409
http://wiki.java.net/bin/view/Games/TextureLoadingExample



---- Additional Comments From kbr 2005-05-06 08:29:38 ----

Another screen grabber which saves images in .TGA format:
http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1115392413




---- Additional Comments From kbr 2005-05-16 08:44:30 ----

Subjects of the above threads (for finding them after the forum cutover):

printing frame content?
http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1105653528;start=0#7

So you like Textures eh? Texturing Demo in JOGL.
http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1058674409

Texure loading example
http://wiki.java.net/bin/view/Games/TextureLoadingExample

a fast screenshot function
http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1115392413




---- Additional Comments From kbr 2005-09-26 13:34:05 ----

More threads related to texture loading:

Basic Textures In JOGl
http://192.18.37.44/forums/index.php?topic=10950.0

One way of using DDS texture files
http://lwjgl.org/forum/viewtopic.php?t=1264




---- Additional Comments From kbr 2006-01-09 00:38:16 ----

In collaboration with Chris Campbell from the Java2D team at Sun, and with
suggestions from Romain Guy from the Swing team at Sun, a new TextureIO class
and helper classes have been added to the com.sun.opengl.utils package. This
class provides the ability to read textures from multiple file formats and to
write them back to the same formats. Specialized loaders for Targa, SGI and DDS
files have been included; the DDS loader supports texture compression via
GL_EXT_texture_compression_s3tc. The TextureIO class allows the user to separate
the loading of textures from disk from the uploading to OpenGL so that the
textures may be read in a separate background thread with no current OpenGL
context if desired. Two demonstrations of the TextureIO class have been added to
the demos.texture package in the jogl-demos workspace.

A Screenshot utility class has also been added. This contains the fast Targa
screenshot function contributed by Carsten Weisse from Bytonic Software as well
as a routine which takes a screenshot to a BufferedImage and one which saves
that BufferedImage to any ImageIO-supported file format. The Targa screenshot is
the fastest, while the ImageIO-based function is more flexible, supporting
multiple, more common file formats.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:47 EDT  ---

This bug was previously known as _bug_ 131 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=131