Based on your main requirement (portability) I'd suggest you to use
JBuilder Foundation. It is free (www.inprise.com/jbuilder) and, as far as
I know, is the most portable of the full-featured Java IDEs (Windows,
Solaris and Linux).  There's no JBuilder for the SGI, you could develop in
any one of the first mentioned platforms and test it at the SGI throught
the standard JDK.
If you really need to develop (and not only deploy) for all the
forementioned platforms, I guess the only solution I know is using Emacs
plus and add-in module called JDE (you can find the link at
www.blackdown.org). Although nice, Emacs+JDE are FAR more limited than
JBuilder, or VisualAge, or others (for example, there's no GUI Builder).
Regarding the second question (changing the axis of rotation), one
suggestion I might give you is: instead of applying the rotation directly
to the object you want not rotated around its center, try to create an
auxiliary TransformGroup above the object's TransformGroup, and rotate the
auxiliaty TransformGroup. At the object's true TransformGroup you apply
the displacement you want for the center.
In ASCII diagrams:

What you had:


        TransformGroup myObjTG
                |
                |
                ----Shape3D


My suggestion:

        TransformGroup auxiliaryTG
                |
                |
                ----TransformGroup myObjTG
                          |
                          |
                          ----Shape3D



        Apply the rot/trans at the auxliary TG.



Maybe this way it gets easier to see:

Suppose this is a Shape3D and it has a TransformGroup right above it. If
you apply a rotation at the TransformGroup, this Shape will be rotated
around the "O"  point.

 __________
|         |
|         |
|    +    |  +
|   O     |  X
|_________|

But, instead of rotating around that axis that contains the "O" point what
you really wanted was rotating it around the "X"  point, how would you do
that?
My suggestion is just add a TranformGroup above the TransformGroup you
already have, and apply at your current TransformGroup a translation that
equals (O-X) vector. This way, when applying translations at the auxiliary
TransformGroup, your object will be rotated around that "X"  point.


                                Hope this helps
                                        Fabio de Miranda



On Thu, 9 Mar 2000, luigi wrote:

> Hello, I'm begining in the world of Java 3D and a i have a few
> questions:
> I'm going to develop an application to simulate a robot so i will need
> Java 3D in order to represent it, and I will also need AWT/Swing
> components for the interface. I'm writting here to ask what tool can I
> use to do this work. I tried Visual Age (IBM) and JBuilder (Borland) but
> i'm not sure if these are the best. I will need portability because i
> will need to work with Windows, Linux and SGI...
> Another question is if there is a way in Java 3D to change the axis of
> rotation of an objet or i have to make a translation then the rotation
> and then the inverse translation every time i want to rotate the
> object...
> Sorry if my questions are too basic, but i'm beginning in this...
>
> Thank you.
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to