Appreciate the replies, will try put together an example which showcases this asap
Posts by CatSavior
-
-
Hello there, I'm nearing the end of my tour development and have ran into an issue with browser crashing on mobile specifically IOS. Both chrome and safari (Not tried android or any tablet yet)
5 different directional audio sounds, all being MP3. All looping
2240kb, 3351kb, 1435kb, 1091kb, 1835kb
I have them setup so when out of range and 0 volume they StopSound (have also tried destroySound) and in range again PlaySound (have also tried streamsound). At most 3 sounds are playing at any one time.
If I comment out playsound, eveything is fine. I can roam my tour for 10mins+ on an iphone 12 between gaussian scenes, pano scenes and dollhouse 3d obj. However if I allow the sounds, the iphone browser safari or chrome will always crash and restart after roaming around the tour area a couple times (60-120sec)
What options do I have here, does anyone know? I wanted to try uncompressed wav but its 52mb compared to 3mb
-
Display More
Hi,
your syntax is slightly wrong - the first argument is the range, not the name again:
https://krpano.com/plugins/soundinterface/#sound.setup3d
About the settings:
- refDistance - is the distance where the sounds starts to falloff, but where 1.0 relates to 1000 units (^=10m) in krpano
- rolloffFactor - is a factor how strong the volume rolloff/falloff will be, larger values = stronger volume reduce
- the other settings keep at default for the first try
E.g. try:
That should be very noticeable.
And for smoother falloffs, use smaller rolloffFactor value.Best regards,
KlausReally appreciate the guidance and it has made clear the root issue. Even with 0.1, 100 or even 0.001, 100 the sound is not starting to fade out until about the same distance away every time, and that is quite far, I'd guess 15m. For some reason there seems to be a minimum. Could it be the size/scaling of the hotspot itself? Edit : Tried with play sound at xyz instead, same issue.
-
Code
<action name="setup_spatial_audio"> playsound_at_hotspot(video_spatial, 'skin/test.mp3', video, true, 1.0); sound[video_spatial].setup3d(video_spatial, 12, 1, linear, HRTF); </action>
Hello all! I'm having trouble understanding the 3d positional functions specifically how sounds get quieter over distance. Anyone have experience with setup3d or setup3d sound? Sadly soundinterface.js is encrypted.
So the above code works but its a very sharp fall off, eg its full volume until about 15m away then its 20% volume suddenly then it fades to nothing. I have tried all sorts of combinations but can't seem to get it to smoothly lessen the volume over a short distance - its always sharp n sudden! Things I've tried :
sound[video_spatial].setup3d(video_spatial, 12, 300, linear, HRTF); (Seems like no difference to above)
sound[video_spatial].setup3d(video_spatial, 1, 300, linear, HRTF); (Seems like no attenuation at all)
sound[video_spatial].setup3d(video_spatial, 12, 0.01, linear, HRTF); (Seems like no difference to above)
sound[video_spatial].setup3d(video_spatial, 12, 1); (Seems like no difference to above)
sound[video_spatial].setup3d(video_spatial, 1, 1, linear, HRTF); (Seems like no attenuation at all)
I also tried making the worldscale 0.001 and 10000 etc, the various panning models and curves too. Note, panning always sounds great! Its just the lessening of volume over distance that I'm wrestling with! Thanks -
Hello there. I am having issues with the sound interface setup3dsound. In a 3D model depth map tour, if I playsound at hotspot I hear the directional panning working great. However if I move away from the sound source (3d controls etc) it does not get quieter, even with very high rolloff. Is it suppose to be taking care of this for us? Thanks in advance!