Hi again,
Non stop questions from the one they call KP!

Anyway, I want to be able to let the user decide how
many objects are to be placed in the scene, I want the
user to be able to place an object by clicking a
button..They can click as many times as they like and
a new object will be placed in the scene, I'm not too
worried where the object is placed as the user can
move each object to where they would like it to be.

At the moment I have my objects, I have my button, but
I can't get them to work together. I'm using
behaviors, but I not sure I should be?
I can compile my code but I get the following error
when I click my addObject button:

Exception occurred during Behavior execution:
java.lang.NullPointerException at
AWTInteractionBehavior.processStimulus(AWTInteractionBehavior.java:37)
at
javax.media.j3d.BehaviorScheduler.doWork(BehaviorScheduler.java:174)
at javax.media.j3d.J3dThread.run(J3dThread.java:256)

I think it's got something to do with what my behavior
is attached to, as if i was rotating a cube I would
attach to the cube, but as I want to add to the scene,
i need to attach to the whole scene, but it doesn't
like that, I don't think?
Any ideas/code/help??

Cheers
KP




__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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