Tahir Emre KALAYCI wrote:
Hi all,
I m sending an example i am working on it. I got some problems+questions
about it.
Here is what i am trying to do:
Example X3D contains a cube and this cube has moving animation.
with help of SAI i want to change route of the cube. Unfortunately some
problems arise:
1)Cant i add more coordinates than i defined in the X3D file ? (for
example
this X3D has 3 route coordinates (PositionInterpolator:PosInt) and i
want to
increase this to 5 but for third and fourth coordinates throws
ArrayIndexOutOfBoundsException)
2)Why this animation doesnt work on Xj3D?
I hope i could explain.
Best regards.
Your first issue is with the startTime. Do not make it -1. Xj3D is not
rendering that correctly.
A bug report has been filed for this:
http://bugzilla.xj3d.org/show_bug.cgi?id=197
Notes:
From Spec:
" The *keyValue* field shall contain exactly as many values as in the
*key*field."
So i am trying to change key field too, but same exception occurs.
Note 2: Atachment contains a simple X3D and Java class
The out of bounds issue is a known problem with this release.
http://bugzilla.xj3d.org/show_bug.cgi?id=192
You can work around this problem by using a setValue call to replace the
whole array instead of trying to grow it with set1Value.