Hello People!
I hope this isnt too simple a question...
I have finally got java3D working .. I hit up against the 'No pallete
attached to this surface' exception untill I found out all I needed to
do was change resolution ! Very frustrating....
I have gone on to create the simplecube, simple universe etc..
Then I moved on too creating my own universe with two separate
translated viewplatforms and turned my simplecube into an animated
stereogram! (I thought mucho coolo!)
I am now trying to create an animated stereogram of an atom, but I
have the following problems,
1. my Sphere(); objects dont appear (I have set an appearance with
material etc.., and also used default Sphere(), and default
appearance(); but no joy.
Sphere sphere = new Sphere(0.4f);
I add the spheres to the transgroup with
transgroup.addChild(sphere);
If I replace
Sphere sphere = new Sphere(0.4f);
with
Shape3D cube = new ColorCube(0.4f),
Everything works fine.
2. I originally thought all I had to do to get the spheres rotating
around the central sphere was to create their rotationinterpolator
behaviours, and when I translated the spheres they would rotate around
the World Axes, but nope, they spin around their own axes staying in
the same place! (I have only actually seen this with the cubes, as my
spheres dont appear!). So, I thought of adding a translation to the
rotation used to alter the orientation of the rotationinterpolator(),
but I get the following error,
Non-Affine transformation.
(I have just thought, is this a problem with my scene graph
structure?)
After a week of battling to get this far my head hurts, So I thought I
would call for help!
Much appreciated,
Matthew Warren.
[EMAIL PROTECTED]
(If anyone want the steregram class let me know :) )
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/