dqope21

Members
  • Content count

    4
  • Joined

  • Last visited

  1. Audio Issue with BABYLON.Sound

    Sorry to dig up an old issue but I have a problem getting a .wav or .mp3 to play upon scene load. I put the file in the same folder as my JS file and call var music = new BABYLON.Sound("Test", "test.wav", scene, function(){ console.log('music called!') }, { loop: true, autoplay: true }); music.play(); However, I get the errors: Error while decoding audio data for: Test / Error: EncodingError: Unable to decode audio data Uncaught (in promise) DOMException: Unable to decode audio data Any help would be appreciated!
  2. Thanks so much for taking the time to respond. You were incredibly helpful!
  3. @Wingnut Thank you so much for your helpful response. I managed to get a GUI to display by integrating CastorGUI upon clicking a painting. We're having trouble making the GUI do what we want. Are there any particular tools that people use with BJS to make this sort of thing easier? Also, we're trying to import other obj models into the scene. Is there an easy way to do so?
  4. I am currently in the process of learning BabylonJS and had a couple very basic questions. I'm toying around with the Espilit demo from the main website and I'm having trouble editing the paintings on the walls. I opened espilit.babylon in the editor but I can't seem to change the images. In addition, how could I add event handlers to each painting? For instance, if I wanted to play a different piece of music by pressing spacebar in front of each of the paintings, how might I add this feature? I would appreciate any help! Thanks a bunch!