J�r�me Meyer wrote:

> All I need is really quite basic : to draw a cube with spheres on the
> corners, and to make it rotate on 3 axis.
> But I don't know very much about Java, the first question I am wondering
> : is that easily doable with Java 3D? where can I find the commands to
> draw and rotate the cube?

Plenty of places to look. If you download the J3D libs and the demo
programs,
there is a colour-cube demo there. IIRC, that spins in one axis. TO make
it spin, there are some pre-built interpolators in the spec.
RotationInterpolator is what you are probably after.

To add the spheres, look to the Transform class, which is in the core
API, and then in Sun's util classes, there are some sphere objects.
Combine that all together and you have your demo.

--
Justin Couch                         http://www.vlc.com.au/~justin/
Java Architect & Bit Twiddler              http://www.yumetech.com/
Author, Java 3D FAQ Maintainer                  http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
                                               - Greg Bear, Slant
-------------------------------------------------------------------

===========================================================================
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