Ok, so I have it working part way. Here is what I did.
Instead of using the old vrml97.jar, I switched loaders to the updated version of this provided
here.
Now I can load textures that are in the same directory as the vrml file.
Now for the part that I can't get to work: relative paths
Example:
1 2
| models/test.wrl textures/texture.jpg |
Now in test.wrl there is an element called texture and it has a url attribute
if I do this
1
| texture ImageTexture { url ".../textures/texture.jpg" } |
Then I get an exception when loading this with Java Web Start; however, this works fine running the application without jws.
If I were to copy the texture.jpg into models/. and set url="texture.jpg" then it works.
I really really don't want to do this b/c it will make the whole model and texture directory structure look ugly.
Any thoughts?