Hi,

I am working through the tutorial on Java3D, content creation and
interaction. Please can someone help me with couple of  things I am
stuck on. They are probably really simple, but I couldn't find them in
the documentation or examples.

1.) How do I change the appearance of object loaded with  objLoad. With
a Shape3D, a sphere or whatever, I can  use setAppearance(appearance),
but the Object Loader gives me a BranchGroup, with no access to an
equivalent function. Is there a way of setting the appearance for the
whole scene? Or a way to create a Shape3D from the information the
Object Loader reads in?

2.) I have written a Behavior class that wakes up when a key is pressed
and then calls processStimulus. This works fine, except that I can't
figure out which key was pressed. The processStimulus function just has
java.util.Enumeration criteria as a parameter, and this doesn't seem to
correspond to any particular key. How do I find out which key was
pressed?


Thanks for any help.

From,

Greg.

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