We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › javax.media.opengl.GLException:Stream was null
Page Index Toggle Pages: 1
javax.media.opengl.GLException:Stream was null (Read 728 times)
javax.media.opengl.GLException:Stream was null
Mar 18th, 2009, 2:13pm
 
Code:
public  void loadInitialTexture(String initialMapFilename) {
try {
initialMapData = TextureIO.newTextureData(getClass().getClassLoader().getResourceAsStream(initialMapFilename),
false,
FileUtil.getFileSuffix(initialMapFilename));
} catch (IOException e) {
throw new GLException(e);
}
initialMapDimensions[0] = initialMapData.getWidth();
initialMapDimensions[1] = initialMapData.getHeight();
}


i tried to ported water example from jogl demos,until now the problem is that everytime when i call the Code:
water.initialize() 

method it gave me this error message:
Code:
Exception in thread "Animation Thread" javax.media.opengl.GLException: java.io.IOException: Stream was null
at Water.loadInitialTexture(Water.java:457)


i'm sure the pic data path is correct,somehow just can't working here,does anyone met the same problem b4 or knowing how to solve this issue? many thanks  in advanced!
Page Index Toggle Pages: 1