Login  Register

Re: How to import Blender models into JOGL?

Posted by Demoscene Passivist on Jul 06, 2012; 6:34am
URL: https://forum.jogamp.org/How-to-import-Blender-models-into-JOGL-tp4025391p4025441.html

>But I strongly suppose that the version from the model loader must also work
>in some way, otherwise the Passivist would have written it different. That is why I am asking.

Internally the model loader uses the classloader in more or less the same way you did:
    new BufferedInputStream((new Object()).getClass().getResourceAsStream(inModelPath))

... so the "path" you supply only has to be in reach of the classloader and can be an URL too if you like. I myself don't start my JOGL application direcly out of eclipse but use ant to deploy to a dedicated deployment location and start it manually from there.