Hi Mona,
There is some code which implements the method for rotation
around an arbitrary point.
Using arbitraryTransform method you can rotate object itself or rotate the
camera around the object.
I hope it will help.
Nick
Mona Wong wrote:
> Hi:
>
> I'm a beginning Java 3D programmer. I've got my scene built and can
> view it in my window. I can also rotate, translate and scale using the mouse.
> All this took about 3 weeks of work ...
>
> Now, I would like to center the object in the middle of the window and
> set it up so I can rotate about its center of mass, rather than the current
> axis. How can I accomplish this? Any pointer to sample code would be very
> helpful.
>
> I know I can use the lookAt() function to maniplate view, but it does
> not seem to make any difference to my scene no matter what I set the values
> to. Obviously, I'm doing something wrong here. Also, I know I can use the
> Transform3D class to move the object, but that too doesn't seem to make any
> different. All help is truly appreciated!
>
> Sincerely,
>
> Mona
>
> ==================================================================
> Mona Wong
> National Center for Microscopy and Imaging Research
> University of California, San Diego
> http://www-ncmir.ucsd.edu/
>
> "The truth shall set you free, but first it will piss you off"
> A Landmark instructor
> ==================================================================
>
> ===========================================================================
> 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".
Triad.java
TransDialog.java
SimpleGeometry.java