Ambient sounds stutter
#21
Posted 25 August 2012 - 08:43 PM
Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle
#22 -Shin-
Posted 25 August 2012 - 09:59 PM
#23
Posted 26 August 2012 - 03:44 AM
In Candlekeep where GeN1e first noticed this, you have several fountain ambients (amb_e28) with large radii of effect (700). Doubtless many of these overlap since some are practically right next to each other. I could imagine this could cause stutter when the engine is trying to fire the same .wav off, possibly at slightly staggered times. Certainly it wouldn't sound pretty at the very least. Maybe some sort of math-heavy code could go through and adjust all the conflicting ambients, but in the meantime, maybe we could test by reducing the radii to areas where they won't overlap and test it again. I haven't been able to reproduce the stutter, so it's a bit hard for me to test.This leads me to believe that water sounds are not responsible, even though the stutter usually happens in areas with lots of water running.
Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle
#24
Posted 26 August 2012 - 01:06 PM
"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"
--<CHARNAME> to Portalbendarwinden
--------------------
___________Old pen and paper modules of the 70s and 80s.___________
#25
Posted 27 August 2012 - 12:20 AM
"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"
--<CHARNAME> to Portalbendarwinden
--------------------
___________Old pen and paper modules of the 70s and 80s.___________
#26
Posted 27 August 2012 - 02:14 AM
Can you also colour-code the ambients that are the same reference?
It looks like there are about 4 stacked on each other in the northwest corner - what's with that?
Now someone just needs to write a WeiDU superfunction to go through and adjust/delete conflicting ambient radii...
Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle
#27 -Shin-
Posted 27 August 2012 - 10:51 AM
#28
Posted 27 August 2012 - 11:59 AM
Personally, I have my doubts. Overlapping ambients are by no means rare, so it that was it I would think this problem would be a lot more prevalent.
#29
Posted 27 August 2012 - 12:34 PM
I wrote a quick program to generate an ImageMagick script.Very cool... did you use some sort of script to do that? It should be incorporated into DLTCEP.
SureCan you also colour-code the ambients that are the same reference?
It looks like there are about 4 stacked on each other in the northwest corner - what's with that?
Several of the ambients in the area (including at least a couple in the top left corner) have the "Ignore radius(2)" flag set. This would mean that regardless of the specified radius, you would be in the area effect of multiple ambients as soon as you enter the area. As you pointed out, however, this is a fairly common occurance. Miloch, how do you want to handle the rendering of these (ones with ignore radius flag) on the area background?for one thing the slowdown was apparent upon entering the area (southeast corner) when none of those sounds should have been triggered yet
Could you start by writing a WeiDU script to extract the full area graphic as a BMP (leaving out the extra tiles at the bottom of the tileset), and a tab-delimited list of: ambient name, associated WAV (although some have many... Haven't decided how to handle those yet...), Origin X, Origin Y, and Radius?Now someone just needs to write a WeiDU superfunction to go through and adjust/delete conflicting ambient radii...
"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"
--<CHARNAME> to Portalbendarwinden
--------------------
___________Old pen and paper modules of the 70s and 80s.___________
#30
Posted 27 August 2012 - 01:06 PM
Color-coded excluding ambients with "Ignore radius(2)" flag:
Edited by Sam., 27 August 2012 - 01:11 PM.
"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"
--<CHARNAME> to Portalbendarwinden
--------------------
___________Old pen and paper modules of the 70s and 80s.___________
#31 -Shin-
Posted 22 September 2012 - 12:32 PM
#32
Posted 24 September 2012 - 02:44 PM
Shin - that could be the case but is hard to tell unless folks who have the issue post their sound cards and the exact areas where they get the stutter. So far, no one's really done this. Also it is unlikely for BGEE to fix the issue if it occurs in the ToB engine and no one knows exactly *what* the issue is (so far it seems inconclusive without further details and testing).
Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle
#33
Posted 24 September 2012 - 09:26 PM
If everyone starts posting what they are, it may reveal some commonality. Plus I'll generate and post a visual of each one.getting exactly the same issues in certain areas both in BG and BG2,
Miloch, would it be necessary/interesting/worth my time to calculate the overlapping area of the ambients with the same sound file(s)?
Edited by Sam., 24 September 2012 - 09:26 PM.
"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"
--<CHARNAME> to Portalbendarwinden
--------------------
___________Old pen and paper modules of the 70s and 80s.___________
#34 -Shin-
Posted 25 September 2012 - 05:23 PM
AR0700 (Waukeen's Promenade) - the stutter kicks in only at night when the AM-FirePot 1-14 ambients kick in. The wav is AM0700O.WAV
AR0300 (Athkatla Docks) - this one seems to go against the overlapping hypothesis since it appears one single file causes the issue here, AM-Tower Fire. The wav is AM0300O.WAV
AR7900 (BG1 Wyrm's Crossing), River1-River22 (AMB_E09B.WAV) and all the Fire ones (Ambients 25-36, AMB_E14A.WAV)
AR7000 (BG1 Cloakwood Lodge), River1-RIver5 (AMB_E08B.WAV)
ARU000 (Ulgoth's Beard), all the "Surf Noises (Beach)" i.e. ambients 1 and 7-9, AMB_E10B.WAV
AR9500 (BG1 Lighthouse) - Ocean1-Ocean20, i.e. every ambient sound in that area. They all use the same wav, AMB_E10A.WAV as GeN1e mentioned.
AR8500 (Baldur's Gate Docks) - Ocean1-Ocean10, AMB_E10B.WAV
#35 -Shin-
Posted 25 September 2012 - 05:31 PM
ARU002 (Ulgoth's Beard basement where you fight Aec'Letec), Torches 01-06, AMB_E14A.WAV
#36
Posted 25 September 2012 - 07:46 PM
Visual for AR0700AR0700 (Waukeen's Promenade) - the stutter kicks in only at night when the AM-FirePot 1-14 ambients kick in. The wav is AM0700O.WAV
For some reason, it kept returning an error when I tired to attach the .jpg to the post...
Edited by Sam., 29 September 2012 - 02:41 PM.
"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"
--<CHARNAME> to Portalbendarwinden
--------------------
___________Old pen and paper modules of the 70s and 80s.___________
#37
Posted 27 September 2012 - 01:24 PM
Well it might be worth analysing some of the areas in which no overlap is claimed, such as ar0300 above? Obviously, there is quite a bit in ar0700 at least in one area of it but I don't know if that's conclusive. I think we can get to the bottom of this with enough data and analysis.Miloch, would it be necessary/interesting/worth my time to calculate the overlapping area of the ambients with the same sound file(s)?
Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle
#38
Posted 27 September 2012 - 04:00 PM
Stutter vs File Size & Type for ToB.xls 846K 155 downloads
I only had the files from BG2, not BG1. I may have to do a BGT install to get them all... I thought some of the ambients might not have been compressed to WAVC, but they all were. Considering the two ambients reported to cause stutter that were on this list were way down the list as far as filesize, I'm not so sure that has anything to do with it ether. Those two things were really easy to test, so I figured it couldn't hurt .
"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"
--<CHARNAME> to Portalbendarwinden
--------------------
___________Old pen and paper modules of the 70s and 80s.___________
#39 -Shin-
Posted 28 September 2012 - 03:37 AM
#40 -Shin-
Posted 28 September 2012 - 09:12 AM