I have a problem with the render on both my desktop and laptop.
I tried to update my drivers. not working better
I tred to update jme, (with the nightybuild), no change
I build my own model under Blender and load it, same bug
I have a 6800 on my desktop and a X300 on the laptop.
the code is the one in the tutorial :
// Point to a URL of my model
URL model=HelloModelLoading.class.getClassLoader().getResource("jmetest/data/model/maggie.obj");
// Create something to convert .obj format to .jme
FormatConverter converter=new ObjToJme();
// Point the converter to where it will find the .mtl file from
converter.setProperty("mtllib",model);
// This byte array will hold my .jme file
ByteArrayOutputStream BO=new ByteArrayOutputStream();
try {
// Use the format converter to convert .obj to .jme
converter.convert(model.openStream(), BO);
Node maggie=(Node)BinaryImporter.getInstance().load(new ByteArrayInputStream(BO.toByteArray()));
// shrink this baby down some
maggie.setLocalScale(.1f);
maggie.setModelBound(new BoundingSphere());
maggie.updateModelBound();
// Put her on the scene graph
rootNode.attachChild(maggie);
} catch (IOException e) { // Just in case anything happens
System.out.println("Damn exceptions!" + e);
e.printStackTrace();
System.exit(0);
}
Normally these types of problems are caused by driver issues. Are you sure you tried updating to the newest drivers? If they don't work you'll probably need to give us more information about your computer.
And by us I mean the competent developers and not me at all
I have the same problem… a couple of days ago I tried the test and it looked like it… I'm sure a couple of months ago it looked fine and I haven't upgraded drivers, just installed Java 6 (but I'm still using Java 5 on Eclipse)
Hmm, I see it too. (This bug is also in our bug tracker, I think entered by sfera.)
The polygons are there, but some are wound backwards. You can verify this by adding a CullState with CS_BACK set as the cull mode. Reverting ObjToJme back over the last few revisions does not seem to help.
yes i opened that issue. i think the problem is not on the jme side as several model viewers/editors display exactly the same results. still, i grabbed the obj file format specification and i'll verify the obj loader these days. if there isn't anything wrong with the loader i'll fix the maggie model.
The reason it didn't come up before might be a change in twosided lighting being enabled or disabled. If two sided is set to false (meaning both sides are lit the same way) then she looks fine. If you set it to true (which means lighting calcs are done based on winding direction) then she looks wrong. So we probably always had this issue and somewhere along the way the default for two-sided lighting was changed.