Alpha class for interpolated Behaviors

Xith:

I am currently working on a Xith-compatible equivalent of the javax.media.j3d.Alpha class for interpolated Behaviors. Although not complete, it is now in a functional state. Should I add it to the xith-tk CVS module and, if so, in which package?

Sounds good to me, org.xith3d.behaviors I guess. This is assuming that future behaviour classes will also go into this package (unlike say with loaders where there are many different ones using fourth-level packages). Does that make sense to you?

Cheers,

Will.

OK.

I also have a test class, AlphaTest. Do you want me to put it in org.xith3d.test.behaviors?

Here is what I have so far:
http://cvs.sourceforge.net/viewcvs.py/whoola/core/src/com/whoola/core/media/xith/behavior/

Looking good!

If each test/demo are stand-alone java files (prefrable as it generally means they arn’t too big and people can understand them more easily), just put it in org.xith3d.test. If your tests/demo’s are comprised of several .java files (and the complexity is such you don’t wish to just wrap the classes into the one .java file), then a sub-package of test is probably the way to go.

Will.

OK, AlphaTest added to xith-tk org.xith3d.test and a number of Behavior classes added to xith-tk org.xith3d.behaviors. I’m still working on them.

Excellent! You will make a lot of people happy with this.

I might think about using them myself now. I never used behaviours in Java3D - java3D was in it’s “stalling” fase and I was looking for alternatives when Xith3D started up. Are you intending to implement all behaviours that were in Java3D?

Will.

I did not look at the code, but are “Behaviors” a mean of moving objects in a predefined way ?
If yes, I would have some comments to do (although they seems very cool) :

  • What are they doing in a scenegraph ?
  • If we use a dynamics engine, they are useless
  • Why not start another util library and put these there ?
  • I don’t critic the work, but the place where it is…

Anyway, croft, it makes me happy that WIllDenniss is not completely alone working on Xith3D.

Not sure. What I want to be able to do is to map animation code in a COLLADA file to a Behavior object in a scene graph in a consistent manner. My other objective is to convert a broadcast event about a virtual object moving into a Behavior in the local view.

By Behaviors I mean something almost identical to the Behavior class and its subclasses in the Java 3D API.

I am in a rare position where my work allows me to use and create Open Source. This is because we are funded by a government research grant. I think that all government research grants should require as part of the grant contract the release of the developed source code as Open Source.

It also makes me happy :slight_smile:

Indeed David, you are very fortunate that your work allows the use of and contributions to Open Source. I believe Xith3D is quite business friendly with it’s BSD-like license. The downside of that is that contributions back are not compulsary, but people who do make contributions are helping grow the same API that they are taking advantage of (not to mention thanking the other developers for their code).

I’m really happy to see so much development going on, lets keep it up!

Cheers,

Will.

Hi there,

I also would like to see behaviours in Xith3D. I don’t understand your discussion in this thread: how could you implement Behaviours, when the base classes are not yet implemented? Both the latest release and CVS don’t show any sign of changes lately. Am I missing something?
:ollix

I’m not sure what you mean by “base classes”.

Here is what I have so far:
https://xith-tk.dev.java.net/source/browse/xith-tk/src/org/xith3d/behaviors/

Ok, sorry.
I took a look at an old repository and didn’t see the impl directory. I was refering to the WakeupCriterion classes, when I wrote “base classes”, but all I saw was the interfaces.
The repository you are working in is the current one to use? I only saw the one inside the xith 3d project, but obviously that is outdated?
I am working on an WakeupOnAWTEvent class. Should I post it here, if it works?
cheers
:ollix

hi again,

i am having trouble using the behaviors. Whatever I do, it seems, that the Behaviors are not at all triggered. Do you have an example at hand?
I would really appreciate any help on this.
Thanks
:ollix

[quote]The repository you are working in is the current one to use?
[/quote]
Yep that’s the one. It is the cvs page of the xith-tk project. You can’t get more up-to date :wink:

[quote]I am working on an WakeupOnAWTEvent class. Should I post it here, if it works?
[/quote]
Sure. You’re welcome.

Only one thing I’d like to mention to you: Unlike Java3D in Xith3d Behaviors are not the only possibility to have animation and stuff. You normally do things from the render-loop directly.

Our friend ollix may have confused xith3d and xith-tk CVS repository. :slight_smile:
The first is the core, and the other is the Xith Toolkit. Behaviors are part of the Xith toolkit, since they’re not needed for Xith to run.

I wrote instructions for you, “How to Add a Behavior”:
https://xith-tk.dev.java.net/source/browse/xith-tk/src/org/xith3d/behaviors/package.html?rev=1.8&view=auto&content-type=text/vnd.viewcvs-markup

There does not appear to be any javadoc online for the xith-tk behavior packages.

OK, I just now wrote detailed instructions here:
https://xith-tk.dev.java.net/source/browse/xith-tk/src/org/xith3d/behaviors/package.html?rev=1.9&view=auto&content-type=text/vnd.viewcvs-markup

Thanks a lot David, that’s what I needed.
I will play with it a little and later post my Behaviours…

cheers
:ollix