Re: How to import Blender models into JOGL?
Posted by Estajxo on Jul 05, 2012; 6:37pm
URL: https://forum.jogamp.org/How-to-import-Blender-models-into-JOGL-tp4025391p4025432.html
This one works:
this.getClass().getClassLoader().getResourceAsStream("Modelle/Twonky.obj")
The one from the model loader does not work, yields null:
(new Object()).getClass().getResourceAsStream("Modelle/Twonky.obj")
This one does not work either, also null:
this.getClass().getResourceAsStream("Modelle/Twonky.obj")
Surprisingly, this one does not work at all and yields a NullPointException when i set the window visible:
(new Object()).getClass().getClassLoader().getResourceAsStream("Modelle/Twonky.obj")
If anyone understands the logic behind this, please tell me! :)