Please recheckout SVN. I've updated the JavaDoc and made the loaders use the resource's path as the basePath / baseURL. So you don't need to set the baseURL or basePath anymore, if you're loading from a URL of filename, just as it was before .

At first I tried to compare the Objectloader from Java3D with the one from Xith.In J3D it is simple said load(xy) ... returns scene -> attach it to the TranformGroup and it worksXith now offers loadScene and loadModel. To compare it I use loadScene... and than I got an Exception:java.lang.ArrayIndexOutOfBoundsException: 2 at org.xith3d.loaders.models.impl.obj.FaceList$Face.configure(FaceList.java:267) at org.xith3d.loaders.models.impl.obj.FaceList.build(FaceList.java:206) at org.xith3d.loaders.models.impl.obj.OBJGroup.build(OBJGroup.java:62) at org.xith3d.loaders.models.impl.obj.OBJLoader.load(OBJLoader.java:165) at org.xith3d.loaders.models.impl.obj.OBJLoader.loadScene(OBJLoader.java:270) at org.xith3d.loaders.models.impl.obj.OBJLoader.loadScene(OBJLoader.java:307)

I don't know how to handle this because I used only ''scene = (Scene) ofl.loadScene("test.obj");'' ...there is nothing else...I know that it works a few weeks ago...

I cheked the exported files and it seems that I hit somthing weired ... I compared the export with an older file So the second export of the cube runs fine so far...

sorry begging for help unneeded

Phew glad it finally worked. This type of debugging is particularly nasty.

There's no problem asking for help, I prefer people who ask (unnecessary) questions than those who don't say anything and go out saying Xith3D is crap because they don't found anything There's plenty for you, just ask

At first I tried to compare the Objectloader from Java3D with the one from Xith.In J3D it is simple said load(xy) ... returns scene -> attach it to the TranformGroup and it worksXith now offers loadScene and loadModel. To compare it I use loadScene...

The loadScene() methods of the OBJLoader return an OBJScene, which extends BranchGroup. If you're planning to load a model, which is to be inserted somewhere into the scenegraph, but not as root, then use loadModel(). The most important difference is, that it returns an OBJModel, which extends TransformGroup and is meant to be inserted as a non-root element into the scenegraph.

...and than I got an Exception:java.lang.ArrayIndexOutOfBoundsException: 2 at org.xith3d.loaders.models.impl.obj.FaceList$Face.configure(FaceList.java:267) at org.xith3d.loaders.models.impl.obj.FaceList.build(FaceList.java:206) at org.xith3d.loaders.models.impl.obj.OBJGroup.build(OBJGroup.java:62) at org.xith3d.loaders.models.impl.obj.OBJLoader.load(OBJLoader.java:165) at org.xith3d.loaders.models.impl.obj.OBJLoader.loadScene(OBJLoader.java:270) at org.xith3d.loaders.models.impl.obj.OBJLoader.loadScene(OBJLoader.java:307)

Could you maybe give me the version of the export, that produced this exception? Maybe I can modify the loader to throw a more readable exception.

So, loadModel and loadScene works so far... but stil got a problem with texturing.I used getShapeNodes() but it returns nothing... The loaded File is an Object-File exported from wings3D. I exported the selected cube. getNumChildren returns 1. So there is nothing more than the cube. What's the step catching the shape and change the texture oder material ?

So, loadModel and loadScene works so far... but stil got a problem with texturing.I used getShapeNodes() but it returns nothing... The loaded File is an Object-File exported from wings3D. I exported the selected cube. getNumChildren returns 1. So there is nothing more than the cube. What's the step catching the shape and change the texture oder material ?

Look at the org.xith3d.w3g.ModifyModels example, created especially for you (some convenience features added for that, ok texturing is not perfect, I know )

So, loadModel and loadScene works so far... but stil got a problem with texturing.I used getShapeNodes() but it returns nothing... The loaded File is an Object-File exported from wings3D. I exported the selected cube. getNumChildren returns 1. So there is nothing more than the cube. What's the step catching the shape and change the texture oder material ?

The getShapeNodes() List is not filled by each loader (maybe it should be). But the model should be correctly textured by the loader itself. I was trying to debug it yesterday, but I couldn't find any OBJ model with correct matlib on the internet. When I have one, I'll try to fix the texture bug, if there is any.

I fought a little with blender and aoi and it's really complicated the create a simple textured sphere . Well, I wan't even able to get it with aoi. I seem to need to import a texture before I can apply it to an object. But it doesn't accept a simple jpg.

Please, hawkwind, you would help me a lot to find this bug, if you sent me an obj file with mtl and texture, that was once working with the obj loader. I have really much to do and don't have time (and am not in a mood) to work through several tutorials to learn blender or aoi now.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org