I only found 1 other post related to my question and it was about textures. I am trying to load an OBJ file that has an MTL file with it. No textures (image files) or anything. It’s a simple coffee cup.
I am doing it just as the example in Starter.pdf and I keep getting a NullPointerException on the follwing line:
converter.convert(model.openStream(), BO);
Here is my code up to that point just in case.
protected void simpleInitGame()
{
URL model = HelloModelLoading.class.getClassLoader().getResource("/com/gthought/jme/models/mug.obj");
FormatConverter converter = new ObjToJme();
converter.setProperty("mtllib", model);
ByteArrayOutputStream BO = new ByteArrayOutputStream();
JmeBinaryReader jbr = new JmeBinaryReader();
BinaryToXML btx = new BinaryToXML();
try
{
converter.convert(model.openStream(), BO);
.......
Gregg