[x3d-public] View3dscene Sound and exit Error

Michalis Kamburelis michalis.kambi at gmail.com
Sat Sep 2 14:47:30 PDT 2023


AD 1 - Also done.

I added a few new fields from X3D 4 to Sound and AudioClip.

And the new fields

- Sound.enabled,
- AudioClip.enabled,
- AudioClip.gain

...are actually honored. That is, their values matter, and updating
them at runtime (e.g. by some animation) also updates the sound
properly. I added demos of them to
https://github.com/castle-engine/demo-models ,

sound/test_enabled.x3dv
sound/audioclip_gain_animate.x3dv

https://github.com/castle-engine/demo-models/blob/master/sound/test_enabled.x3dv
https://github.com/castle-engine/demo-models/blob/master/sound/audioclip_gain_animate.x3dv

Please give Jenkins a few hours from this email, and the view3dscene
version "snapshot" on https://castle-engine.io/view3dscene.php will
contain this.

Regards,
Michalis

sob., 2 wrz 2023 o 21:13 Joe D Williams <joedwil at earthlink.net> napisał(a):
>
> Thank You, I really need the added fields to make sound audio to act like a now timesensor, like it should, along with the event utilities.
> Thanks Again, I'll show some soon.
> Joe
>
>
> -----Original Message-----
> From: Michalis Kamburelis <michalis.kambi at gmail.com>
> Sent: Sep 1, 2023 11:32 AM
> To: Joe D Williams <joedwil at earthlink.net>
> Cc: <x3d-public at web3d.org>
> Subject: Re: [x3d-public] View3dscene Sound and exit Error
>
> AD 2 - ("Cannot use TCastleViewport.PositionToXxx...") -- fixed, thank
> you very much for reporting. It was an ordinary bug I introduced few
> days ago.
>
> ( Give Jenkins a few hours since this email, and the new "snapshot"
> build on https://castle-engine.io/view3dscene.php will contain the
> fix. )
>
> Regards,
> Michalis
>
> śr., 30 sie 2023 o 21:44 Joe D Williams napisał(a):
> >
> >
> >
> > > 2. As for new error: That's a really downscaled screenshot :) I cannotdecipher the text there, I'm afraid. I know the x3d-public mailinglist has a rather ancient limits on attachment size :) -- if that's why you scaled it so much.
> >
> > This happens every time I exit, no matter what has been in there, or nothing, just quit without loading anything.
> > It's the dreaded exception exception:
> >
> > Exception:"Exception
> > Cannot use TCastleViewport.PositionToXxx when viewport has effectively empty size.
> > ,,,
> > although you could also
> > ...
> >
> >
> >
> > Just looks like some small changes between this 4.3.0 and the one I had before.
> > Thanks.
> > Joe
> >
> >
> >
> >
> > -----Original Message-----
> > From: Michalis Kamburelis
> > Sent: Aug 30, 2023 9:39 AM
> > To: Joe D Williams
> > Cc:
> > Subject: Re: [x3d-public] View3dscene Sound and exit Error
> >
> > 1. Thanks, it seems indeed we missed some X3D 4.0 fields from sound nodes.
> >
> > I'll add them, these fields look easy and we should actually
> > support them (not only parse them, but actually "understand and act on
> > them").
> >
> > We didn't add various WebAudio-specific fields to CGE/view3dscene
> > yet. But the ones mentioned above (enabled, gain) seem trivial without
> > WebAudio.
> >
> > 2. As for new error: That's a really downscaled screenshot :) I cannot
> > decipher the text there, I'm afraid. I know the x3d-public mailing
> > list has a rather ancient limits on attachment size :) -- if that's
> > why you scaled it so much.
> >
> > Please submit a bugreport rather using
> > https://github.com/castle-engine/view3dscene/issues . You can attach
> > there a screenshot of reasonable size, so I'll be able to read it. If
> > you can, please attach also a minimal VRML / X3D testcase to reproduce
> > the problem.
> >
> > This is our recommended way to send bugreports.
> >
> > Regards,
> > Michalis
> >
> >
> > śr., 30 sie 2023 o 18:17 Joe D Williams napisał(a):
> > >
> > > Hi, Trying an audio as follows:
> > >
> > > description='Show Music'
> > > enabled='true'
> > > intensity='1'
> > > location='9 4 7'
> > > direction='0 0 -1'
> > > maxBack='50'
> > > maxFront='50'
> > > minBack='20'
> > > minFront='20'
> > > priority='0'
> > > spatialize='true'>
> > > description="John Wichita"
> > > loop='true'
> > > startTime='0'
> > > stopTime='0'
> > > pitch='1.0'
> > > enabled='true'
> > > pauseTime='0'
> > > resumeTime='0'
> > > gain='1'
> > > url='"theWave.wav"'/>
> > >
> > > Got these messages
> > >
> > > X3D: Unknown X3D field name (unhandled X3D XML attribute) "enabled" in node "Sound"
> > > X3D: Unknown X3D field name (unhandled X3D XML attribute) "description" in node "Sound"
> > > X3D: Unknown X3D field name (unhandled X3D XML attribute) "gain" in node "AudioClip"
> > > X3D: Unknown X3D field name (unhandled X3D XML attribute) "enabled" in node "AudioClip"
> > > Stereo sound files are *never* played as spatial by OpenAL. Convert sound file "file:///E:....wav" to mono (e.g. by Audacity or SOX).
> > >
> > > I think those fields should be ok in 4.
> > >
> > > The image shows a new error.
> > > I am running the latest 4.3.0 this morning, which is different that the 4.3.0 I have been using for some time.
> > > Thanks,
> > > Joe
> > >
> > >
> > >
> > > _______________________________________________
> > > x3d-public mailing list
> > > x3d-public at web3d.org
> > > http://web3d.org/mailman/listinfo/x3d-public_web3d.org
> >
> >
>
>



More information about the x3d-public mailing list