Re: How to import Blender models into JOGL?
Posted by Estajxo on Jul 05, 2012; 7:19am
URL: https://forum.jogamp.org/How-to-import-Blender-models-into-JOGL-tp4025391p4025421.html
I suppose the path to the file is not the problem, because I can read out the file like this:
try {
FileReader datei = new FileReader("Modelle/Twonky.obj");
BufferedReader br = new BufferedReader(datei);
String zeile;
while ((zeile = br.readLine()) != null) {
System.err.println(zeile);
}
br.close();
datei.close();
} // try
catch (IOException io) {
System.out.println("Sprachdatei nicht gefunden\n" + io.getMessage());
System.exit(1);
}
The problem must be the getResourceAsStream() method, which is unable to find the obvious...