I'm trying to implement a Java3D model loader for Collada 1.4.1 format.
There's an implementation on j3d-incubator project however it doesn't seem that is supporting many functions so that I checked out from their repository and tried implementing additional functions.
When I get some result, I'd like to submit my codes.
For the first step, I tried loading models that were made with Google SketchUp (it's using Collada format)
As you know, there is a lot of great models on 3D Warehouse and it must be very helpful if you can load them into your java 3d application.
I made a very simple applet to try loading them.
(I sincerely ask you guys to accept my personal signature that is needed to access local files by the applet)
It hasn't been supporting a lot of functions however it is able to load geometry, basic materials (such as diffuse or ambient colours) and simple textures.
Please be careful loading a large file, it might require a huge amount of memory space.
You can also download jar binary archive.
Here's a code fragment to try it. Please refer Java3D object loader usage that you can find on several web sites.
loader.KmzLoader l = new loader.KmzLoader();Scene s = l.load(new URL(path));BranchGroup bg = s.getSceneGraph();
You may also need to adjust camera location or things.
I found out if the model is too large Java3D is not able to handle z buffer orders so then you need to use Transform group to scale it smaller.
If someone has information on this problem and solution please let me know.
Hope you can enjoy it. :)
When you find bugs or have any requirements, I'd be grateful if you leave messages here.