LibGDX - Load simple 3d model Obj?

Hi,

I made a simple cube in wings 3d.

Now I’m trying to load this with:

    private Mesh model;
    ...
    @Override
    public void create() {
       InputStream fileIn = Gdx.files.internal( "data/cube.obj" ).read();
       model = ObjLoader.loadObj( fileIn, true );
    }

But it’s not working. For the model = … Line -> eclipse says:

    The method loadObj(FileHandle, boolean) in the type ObjLoader is not applicable for the arguments (InputStream, boolean)

It doesn’t get any clearer than what the error says. It’s expecting a FileHandle, you’re passing it an InputStream. The solution to this should be fairly obvious (hint: what does Gdx.files.internal return?)