grace Wang wrote:
>
> Hi, Everyone,
Hi Grace,
there are two color cubes in the scene, but
the first is placed to high or your viewpoint is to near,
respectively ;-)


>   ColorCube cb1 = new ColorCube(0.4);
>   ColorCube cb2 = new ColorCube(0.2);
>   Transform3D translate1 = new Transform3D();


>   translate1.set(new Vector3f(0.0f, 3.0f, 0.0f));

e.g. change to: translate1.set(new Vector3f(-1.0f, 0.0f, 0.0f));

>   TransformGroup t1 = new TransformGroup(translate1);
>   objRoot.addChild(t1);
>   t1.addChild(cb1);
>
>   Transform3D translate2 = new Transform3D();

e.g. change to:  translate2.set(new Vector3f(1.0f, 0.0f, 0.0f));

>   TransformGroup t2 = new TransformGroup(translate2);
>   objRoot.addChild(t2);
>   t2.addChild(cb2);

> grace

Happy hacking

Joerg

--

  http://w5.cs.uni-sb.de/~baus

  Email : [EMAIL PROTECTED]
  Phone : +49-681-302-2016
  Fax   : +49-681-302-4136

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