Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
It works in the editor, but not in the browser, mp3, tried both, mono and stereo. Am I doing anything wrong? Also, loop has a nasty pause of about 200ms, making looped ambiance sounds impossible. That may be a JS problem in general. |
||||
|
Not sure if this will fix it but I would try using .wav (wave) audio - in case the browsers mp3 codec is creating the problems? |
||||
|
mp3s have a bit of silence in the beginning. That's just how the format was designed. I'd suggest ogg personally. It tends to sound better at lower bit-rates anyways. Opus support would be great though. |
||||
|
Thank you guys, appreciate it. I don't think it's a matter of MP3 vs WAV. Furthermore I think I couldn't load those WAVs (old ones, 22kHz) in CC, so I converted them to mp3. Well, I couldn't resist to write my own 3D sound engine, that offers a bit more: https://jfkeo1010etc.itch.io/mini3dsoundenginejs I yet have to marry it with CC tho, but works as standalone demo. Due to CORS it requires a server, but theoretically it can be run from inside the webGL target folder of CC, after publishing something with CC (which starts a local server btw) |
||||
|
Ok, I managed to put the two together, a CC level and this 3D soundengine. I posted it on itch.io. You can run it there in the browser. A shame the CC keyboard handler does not work on itch.io ! I am a beginner and I wrote a keyboard handler that worked everywhere. Anyway, here's the link: https://jfkeo1010etc.itch.io/mini3dsoundenginejs-meets-coppercube-game-engine |
||||
|
Turns out by now it works partially. The page scrolls on cursor keys, which are also used to walk around. However, when you don't press the down key, you can navigate, as the page is scrolled to the top, potentially hiding the bottom part of the game canvas, depending on your screen resolution. This demo shows the 3D sound engine, my smooth fps camera extension with footstep animation layer and last but not least CC's beautiful out-of-the-box terrain and water, BTW sorry that I was kinda negative, I had a bad day. https://jfkeo1010etc.itch.io/min... |
||||
|
Ok, now it's getting weird, now it doesn't work anymore, not at all. (the keys) - not sure whether the dudes at itch.io are constanly altering their page code, or, what would be a worst case scenario, we are dealing here with the coders' nightmare, the inpersistant, nonreprocuceable bug. |
||||
|
I'm trying to get a simple working example. The several zip files do work on localhost; but I can't find any ccb file on how to implement it directly in ccb. Do I need to use the custom cam script? Thanks all! |
|