[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [x3d-public] Using TimeSensor+PositionInterpolator with SAI



I decided to work through the bug case to see what was going on, and what's happening is that there is a set1Value call on 'addChildren'. The current set1Value methods are implemented to perform in the same manner that user code would:
1. read the old field value
2. change one or more values
3. issue a setValue call
which fails when the underlying field is not readable.


Are the multivalued field manipulators supposed to be able to perform such heroic modifications of inputonly fields?

--Brad Vender

Alan Hudson wrote:
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.


------------------------------------------------------------------------- for list subscription/unsubscription, go to http://www.web3d.org/cgi-bin/public_list_signup/lwgate/listsavail.html