Ok, thanks, so I might not have to write my own Java3D loader if I use X3D’s mulitexturing support. Can you perhaps also recommend a way to get the data from Maya to X3D?
I guess it might be possible to export two files (possibly in the VRML format) with identical geometry from Maya, one with UV-sets and texture paths to the lightmaps and the other with the same info for the detail textures, and combine the info from both the files into multitexture nodes in a tool like X3D-Edit. However, the VRML-to-X3D converter that X3D-Edit uses does not seem to work correctly on the VRML-files that Maya generates (when I use Xj3D to load the X3D files that X3D-Edit creates from Maya’s VRML files a bunch of “No field: textureCoordinate for: TextureCoordinate” lines are spewed out and the textures are messed up).
Xj3D correctly loads VRML files from Maya directly though, can Xj3D somehow be used to convert from VRML to X3D? or do you know of any other ways to convert models from Maya to X3D?
Btw, I know Maya has support for generating the types of lightmaps that I want. It’s actually quite surprising to see that no one seems to have done these very basic game-tasks in Java before. I hope to contribute some info on the subject in the form of a tutorial or library if I get it worked out during my project (5 weeks to go).