Hi
I posted my problem already in Adding the newdawn loaders to the distribution, but because it’s there pretty OT I’ll post it again here.
I’ve got a scene in Blender3d, which I exported to an .obj file. When I load the file with OBJLoader2 It loads, but it doesn’t load the textures - all objects are plain white. When I try to load it with ObjLoader I simply get null returned.
Now I took the suggestions of Bluesky to heart and tried the Loader he suggested. Then I’m only able to export one Object at a time, but that shouldn’t matter for now. More important: I don’t get the textures there either. The only thing I achieved there, is that I get shading. But even this is not complete, because I can only export the objects one by one, the objects are only exported to be at the origin. The Loader also has support for exporting the geometry at the position in the scene, but then all the normals are inverted.
The most may be bugs of the Blender .OBJ exporter.
Here’s again my output when I try to load the objects I exported with blender:
The standart Wavefront export tool (Sphere.001 could be the name of the object or the material of the object):
org.xith3d.loaders.obj.MaterialLibLoader2: ignoring unknown material tag: “d 1.0”
org.xith3d.loaders.obj.MaterialLibLoader2: ignoring unknown material tag: “illum 2”
org.xith3d.loaders.obj.OBJLoader2: ignoring unknown OBJ tag: “o Sphere_None”
org.xith3d.loaders.obj.OBJLoader2: ignoring unknown OBJ tag: “o Sphere.001_None”
org.xith3d.loaders.obj.OBJLoader2: ignoring unknown OBJ tag: “o Sphere.002_None”
org.xith3d.loaders.obj.OBJLoader2: ignoring unknown OBJ tag: “o Sphere.003_None”
org.xith3d.loaders.obj.OBJLoader2: ignoring unknown OBJ tag: “o Sphere.004_None”
org.xith3d.loaders.obj.OBJLoader2: ignoring unknown OBJ tag: “o Sphere.005_None”
org.xith3d.loaders.obj.OBJLoader2: ignoring unknown OBJ tag: “o Sphere.006_None”
org.xith3d.loaders.obj.OBJLoader2: ignoring unknown OBJ tag: “o Sphere.007_None”
org.xith3d.loaders.obj.OBJLoader2: ignoring unknown OBJ tag: “o Sphere.008_None”
org.xith3d.loaders.obj.OBJLoader2: ignoring unknown OBJ tag: “o Sphere.009_None”
org.xith3d.loaders.obj.OBJLoader2: ignoring unknown OBJ tag: “o Sphere.010_None”
org.xith3d.loaders.obj.OBJLoader2: ignoring unknown OBJ tag: “o Sphere.011_None”
The Object I got with the Exporter Bluesky suggested (Mode = Standart) - this also the one, where I got shading:
org.xith3d.loaders.obj.OBJLoader2: ignoring unknown OBJ tag: “o None”
The Object I got with the Exporter Bluesky suggested (Mode = Default) - this doesn’t got shading:
org.xith3d.loaders.obj.MaterialLibLoader2: ignoring unknown material tag: “illum 1”
It is strange, that it loads shading in the case, where there’s no .mtl file existing.
I hope I’m rather stupid, than that there is an error in the code.
Arne