I'm having problems getting a .obj model to load from a file. Whenever the model added to the scene, the screen won't display anything except for the background color. I copied the code from the HelloModelLoading tutorial (into a FixedLogicrateGame), but the copied code doesn't work, even though the tutorial itself does. I think that the model is imported and converted correctly, it seems to be that the model can't render correctly.
Here's the code that loads the model:
URL whiteboardURL = null;
File f = new File("resources\game\main_menu\whiteboard_bak.obj");
whiteboardURL = new URL("file:/" + f.getAbsolutePath());
System.err.println("Failed to load main menu whiteboard model at location "resources\game\main_menu\whiteboard_bak.obj." (Wavefront .obj model)");
whiteboardURL = null;
FormatConverter converter = new ObjToJme();
ByteArrayOutputStream BO = new ByteArrayOutputStream();
Node whiteboard = (Node) BinaryImporter.getInstance().load(new ByteArrayInputStream(BO.toByteArray()));
whiteboard.setLocalTranslation(new Vector3f(0, 0, -50));
System.out.println("Failed to convert whiteboard Wavefront .obj model to .jme model.");
I've already searched for topics like this, but they haven't really helped...