I could not run Java3D demo for the first time.
There were errors at the method calling
getAbsolutePath("data/...");
method of JARToolkit3D class. I found that
the retrieved absolute path is invalid
(probably only on windows)
if the String(arugments) is non-alphabet
(for example, two bytes code like Chinese)
because those characters changes into special
letter translation like
%e6
(which is hexa-decimal coding)
like what we do on URL.
(Sorry I forgot the name of this encoding)
Since I am using Japanese Windows,
I am not sure this happens to everyone
but just in case, I wanted all to know.
For now, It is possible to overcome this
problem by just not to call
getAbsolutePath method.
For example,
m_JARToolKit3D.initialize("data/camera_para.dat");
objTrans = m_JARToolKit3D.createPatternTransform
("data/pattern/hiroPatt", true);
Thank you
Logged In: YES
user_id=1663495
Originator: NO
I have the same problem. Did you got the mean to solve the problem?
i also gotthis problem while using eclipse on a windows system. i solved it by setting this "data" folder as source folder and changing
"m_JARToolKit3D.initialize(JARToolKit3D.getAbsolutePath("data/camera_para.dat"));"
to
"m_JARToolKit3D.initialize(JARToolKit3D.getAbsolutePath("camera_para.dat"));"