[x3d-public] 3D sound with 3D graph.

Joe D Williams joedwil at earthlink.net
Sun Mar 23 15:24:37 PDT 2025


> So I guess it’s a matter of routing the pickedPoint to a sound location 

sure, route time of whatever to starttime of AudioClip.
default plays once.
they can play together
Hmmmmm
Joe. 



-----Original Message-----
From: Extensible 3D (X3D) Graphics public discussion <x3d-public at web3d.org>
Sent: Mar 23, 2025 3:10 PM
To: X3D Graphics public mailing list <x3d-public at web3d.org>
Cc: John Carlson <yottzumm at gmail.com>
Subject: Re: [x3d-public] 3D sound with 3D graph.

This looks useful:
 
https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/picking.html#LinePickSensor

I guess I can make a 3D sound attached to the pickedPoint on a LineSet  I can also use pickedPoint here:
 
https://www.web3d.org/specifications/X3Dv4/ISO-IEC19775-1v4-IS/Part01/components/picking.html#PointPickSensor

So I guess it’s a matter of routing the pickedPoint to a sound location.
 
So if I have a Sound.source AudioClip that I can move around by setting Sound.location to the pickedPoint with a ROUTE.
 
So really, I don’t need a bunch of sound nodes, but I think I need a bunch of Picking sensors for all the geometry?  Can someone help here?  Do I only need one LinePickSensor and one PointPickSensor for the entire scene?  Can I not rely on TouchSensor, except for announcing the label of a node or link?  Or do I need TouchSensor to enable and disable sound?
 
Hopefully I can vibe code some easily, but I’m not opposed to digging in and doing the work.
 
John

On Sun, Mar 23, 2025 at 4:44 PM John Carlson <yottzumm at gmail.com (mailto:yottzumm at gmail.com)> wrote:
Thanks for information, Holger, should be helpful.
 
I’ll try the set_bind suggestion in my examples to reset the view.
 
I looked at the sound examples TOChttps://www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/index.html in the archive.  I’m looking for something that responds to something like picking, like a user input like TouchSensors that starts and stops a 3D Spatial sound attached to an object.  I’m guessing that there’s a start play and stop play on an audio source, which I can control with routes to and from a TouchSensor.
 
Another thing I’m looking for is how “deep” the picker is along a particular LineSet, so as i go along an arc from a near node to a far node, the sound becomes more distant as the picked point on the LineSet gets farther away.
 
I’ll look a bit into the Picking component.


 
John





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20250323/b8caf084/attachment-0001.html>


More information about the x3d-public mailing list