Hey all!
I've been trying out some of the examples in XIN and seem to have reached a problem -- example 5 does not work for me. When creating a ResourceLocator, does one need to specify an absolute path, or a relative one? Where should the resources/ directory be placed? I've been placing it within the src/ directory of my project.
On running, at times I get a white cube (no texture applied to it), and at times an exception is thrown and the JVM killed. Here's a stacktrace:
Exception in thread "main" java.lang.NullPointerException
at Test.createScene(Test.java:99)
at Test.<init>(Test.java:59)
at Test.main(Test.java:137)
Apparently the problem lies with this line:
Texture tex1 = ResourceBag.getInstance().getTexture(RES_TEX1);
A NullPointerException is thrown. (I'm sure the file pointed to by RES_TEX1 exists)
Any tips would be greatly appreciated

J.P.