Hi,

following code-snipped worked fine with J3D 1.2.1_0x:

StreamMC=new MediaContainer("file:"+FName);
PSnd=new PointSound(StreamMC,1.0f,new Point3f());
PSnd.setCapability(PointSound.ALLOW_ENABLE_WRITE);
...
PSnd.setDistanceGain(dist,gain);
PSnd.setInitialGain((float)(cobject_p4/100.0));
PSnd.setSchedulingBounds(new BoundingSphere(new
Point3d(),this.cobject_p2+0.1f));
PSnd.setLoop((int)cobject_p1-1);
PSnd.setEnable(true);

But after I switched to version 1.3.1 (Linux) this causes following
Exception:

java.lang.NullPointerException
       at javax.media.j3d.SoundScheduler.renderChanges(SoundScheduler.java:955)
       at javax.media.j3d.SoundScheduler.processMessages(SoundScheduler.java:253)
       at
javax.media.j3d.StructureUpdateThread.doWork(StructureUpdateThread.java:83)
       at javax.media.j3d.J3dThread.run(J3dThread.java:250)

Has anybody tested PointSounds with J3D 1.3.1?

Michael

--
http://java3d.virtualworlds.de
http://www.3dchat.org - Welcome to the unreal world!

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