Hello guys,
First, please apologize for my language, english is not my native ...
Well, I post here because it may help people who will face the same issue as me : I am working on an Augmented Reality application. I found NyARToolkit (
http://nyatla.jp/nyartoolkit/wiki/index.php?FrontPage.en) a very useful library which enables beginners like me to make augmented reality in java. It uses JMF for the camera capture.
Then I wanted to place animated 3D models on my markers, thus I searched for some 3D loaders able to import 3D models with textures and animations (there's a lot of 3D models for geometry and texture, but quite a few for animations). I found NewDawn Quake Loaders for java3D (
http://www.newdawnsoftware.com/), great and simple loaders. It has been working fine.
And I finally found that these loaders were also packed with Xith3D, a nice scenegraph-engine for java3D. Moreover in Xith3D they added a 3DS loader (NewDawn loaders import only MD2, MD3 and BSP). So I tried, Xith3D works fine.
The issue came when I tried to merge NyARToolkit and Xith3D : I discovered than when I import, in Eclipse, the lwjgl.jar (there's four of them for xith3D : lwjgl.jar, lwjgl_util.jar, jinput.jar and lwjgl-debug.jar), JMF is no more able to find devices on my computer. I mean : I printed out the device list before and after adding lwjgl.jar and it changed from 1 (a USb webcam) to 0. JMF can't find my USB camera when I import LWJGL jars.
Well, it is ok with me : I'll just use MD2 and MD3 loaders but in the future people may need to use both LWJGL and JMF at the same time. I have not the faintest idea how LWJGL can affect JMF but it does. A solution could be to use an other media framework library (I guess there must be other solutions, like using QT*).
I hope it'll help.
--------------------------
Remarks :
# I'm using WinXP and Eclipse Helios. Dunno if it matters.
# If some wonder why I used Java instead of C/C++ to code it, the answer is : I want to put the application as an applet on the web. I can't do it with C/C++.
*Beware of QT : if you try to use your camera with QT on Windows, you'll probably have to find a VDIG because QT uses Quicktime and there is no bridge between Microsoft's DirectShow and Apple's Quicktime. WinVDIG is a good one.