Okay, I must be losing it.  Using PointSound seems very simple, but I cannot
get the sound to eminate from anywhere but the origin (0,0,0).  I place the
sound at (75,0,0), and set an attenuation curve that makes it so that you
must be within 5 units to hear the noise.

But no matter how I change the position of the PointSound, it ALWAYS plays
at the origin.  Can someone see anything from my code snippets that I am
doing wrong?

  static Point2f[] distanceGain = new Point2f[]
  {
    new Point2f(0.0f, 1.0f),
    new Point2f(5.0f, 0.0f)
  };
  ...
  soundNode.setPosition(new Point3f(75.0f, 0.0f, 0.0f));
  soundNode.setLoop(-1);
  soundNode.setSchedulingBounds(
    new BoundingSphere(new Point3d(0, 0, 0), 50000.0));
  soundNode.setDistanceGain(distanceGain);

This is VERY disturbing because I CANNOT have owl and rattlesnake noises in
the same spot.  :^)

(JDK 1.3, Java3D 1.2)

J. Lee Dixon
Software Engineer
SAIC - Celebration, FL
[EMAIL PROTECTED]

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