Hi Adrian
> public class InteriorOfRoom extends Box {
> /** Creates new InteriorOfRoom */
> public InteriorOfRoom()
> {
> //Create a Box
> super(0.1f,0.1f,1.0f,new Appearance());
> Shape3D rearWallShape3D = this.getShape(BACK);
> rearWallShape3D.getAppearance().setColoringAttributes(new
>ColoringAttributes(1.0f,1.0f,0.0f,ColoringAttributes.FASTEST));
> }
> }
> This changes every side to Yellow not just the back. It appears as though somehow Im
>altering the Apperance node of the box not each individual side.
Well maybe all the sides share the same Appearance? So if you change it of
course all the others will change, too. Try this:
newAppearance = new Appearance();
.
.
.
.
get all the settings from the old and add them to the new
and finally set
newAppearance.setColoringAttributes(new ColoringAttributes(....))
rearWallShape3D.setAppearance(newAppearance);
> Ultimately I want to be able to move inside the box as though it is a room
> (a question that has come up here before) is it actually possible to colour the
>interiors? Im assuming it is because they are Shape3D objects)
Nope. You can have two sided lighting yes (with OpenGL, see recent
posting from John Wright and me) but it will take the same
material/color as from the frontface. The only way to change this would be
to use a different lightsource inside the cube.
EOF,
J.D.
--
Realtime Raytracer in JAVA
(http://www.antiflash.net/raytrace)
===========================================================================
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".